I can’t get bold text in QTextEdit with monospace font (Courier). Anyone have any ideas? Worked in Qt4, porting to Qt5, but no luck with this one problem. Using Leap 15.0 and Qt 5.9.4
This is the code I’m using:
ui.textEdit->setFontFamily("Courier");
ui.textEdit->setFontPointSize(16.0);
ui.textEdit->setFontWeight(QFont::Bold); // NOT WORKING IN QT5
ui.textEdit->append("Aisle 1");
ui.textEdit->append("=======");
ui.textEdit->setFontWeight(QFont::Normal);
ui.textEdit->append("Milk");
ui.textEdit->append("Eggs");
It’s working in IceWM … but not Plasma. So it’s not me. So, what is it? A bug in Plasma, or Qt5?