Qt6: QFont::setWeight error when using QTextEdit::setCurrentFont()
Unsolved
Qt Creator and other tools
-
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 0
This 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?