From 565c2e8cf9b7ed59a49256e6576137c92f17d047 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Tue, 12 May 2020 07:52:10 +0200 Subject: [PATCH] Doc: Specify QTextOption behavior in drawText Be more specific about overriding behavior when using the drawText overload that takes a QTextOption argument. Fixes: QTBUG-41894 Pick-to: 5.15 Change-Id: I8b38cb383005f1a07f4c6d70050e0d2cbb551521 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/painting/qpainter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 98b053d29d..4ab4c359bc 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -5871,7 +5871,8 @@ void QPainter::drawText(const QRectF &r, int flags, const QString &str, QRectF * \overload Draws the given \a text in the \a rectangle specified using the \a option - to control its positioning and orientation. + to control its positioning, direction, and orientation. The options given + in \a option override those set on the QPainter object itself. By default, QPainter draws text anti-aliased.