Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to change the font size in the QTextEdit from the QComboBox
DanqueDynasty last edited by
Ive been stumped on a problem for quite some time now, and so I gotta ask, how can I get the font in the QTextEdit to be sized based on the value in the QComboBox. Please help, I have been stuck on this problem for some time. thanks
joonhwan last edited by
maybe you can use QWidget::setStyleSheet(const QString&) function.
see "here":http://qt-project.org/doc/qt-4.8/stylesheet-reference.html for reference
Lykurg last edited by
Connect the currentIndexChanged signal from the box to a slot where you set the font of the editor using QWidget::setFont().