Qt 6.11 is out! See what's new in the release
blog
Qt6: QFont::setWeight error when using QTextEdit::setCurrentFont()
-
I'm in the process of getting an app that I built with Qt5 running with Qt6. One thing that's turned up is that when I try to change the font on a QTextEdit with
textEdit->setCurrentFont(Entry::normalFont);I get an error on the console:
QFont::setWeight: Weight must be between 1 and 1000, attempted to set 0This wasn't happening under Qt5.
Also looks like someone on Github is having a similar problem:
-
I'm in the process of getting an app that I built with Qt5 running with Qt6. One thing that's turned up is that when I try to change the font on a QTextEdit with
textEdit->setCurrentFont(Entry::normalFont);I get an error on the console:
QFont::setWeight: Weight must be between 1 and 1000, attempted to set 0This wasn't happening under Qt5.
Also looks like someone on Github is having a similar problem:
@rjmx said in Qt6: QFont::setWeight error when using QTextEdit::setCurrentFont():
Entry::normalFont
What is this? a QFont object? Where does it come from?