Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.2.4, 6.3.0
-
a2cb9ae8cc (qt/qtbase/dev) a2cb9ae8cc (qt/tqtc-qtbase/dev) a6081a8163 (qt/qtbase/6.4) a6081a8163 (qt/tqtc-qtbase/6.4)
Description
When using QFont::setFamily() with a string that has comma in it, an invalid warning message is shown:
From Qt 6.2, QFont::setFamily() will no long split the family string on the comma and will keep it as a single family
The family is still actually split in Qt 6.2 (and 6.3), so the warning message should be updated for future Qt release when the change is planned to be made again.
Culprit code in qfont.cpp@844:
void QFont::setFamily(const QString &family) { #ifdef QT_DEBUG if (family.contains(QLatin1Char(','))) { qWarning("From Qt 6.2, QFont::setFamily() will no long split the family string on the comma" " and will keep it as a single family"); } #endif setFamilies(splitIntoFamilies(family)); }