From 8165750af85e324055b89f69d2e359e40f043bfc Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Wed, 14 Dec 2022 10:12:33 +0100 Subject: [PATCH] Document max size for QFont::setPixelSize Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-102989 Change-Id: I9a63a2ab8ac6eadf1b5a5865a0a084700d9e85d2 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qfont.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 0db9bbac3fc..75eb3ff2154 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -1013,7 +1013,8 @@ qreal QFont::pointSizeF() const } /*! - Sets the font size to \a pixelSize pixels. + Sets the font size to \a pixelSize pixels, with a maxiumum size + of an unsigned 16-bit integer. Using this function makes the font device dependent. Use setPointSize() or setPointSizeF() to set the size of the font