use the QWidget::setFont() function http://doc.trolltech.com/4.4/qwidget.html#font-propSo my question is: How do I change the font used inside the listwidget?
use the QWidget::setFont() function http://doc.trolltech.com/4.4/qwidget.html#font-propSo my question is: How do I change the font used inside the listwidget?
The following has no effect at all:
The Font still is the default one.Qt Code:
QFont font; listWidget_MacroCommands->setFont(font);To copy to clipboard, switch view to plain text mode
Matthias
Last edited by jacek; 28th July 2008 at 14:52. Reason: changed [qtclass] to [code]
try this, i hope it works...
Qt Code:
QFont font; font.setFamily( /*include your text here(as QString) */); listWidget_MacroCommands->setFont(font);To copy to clipboard, switch view to plain text mode
for more details see http://doc.trolltech.com/4.4/qfont.html#setFamily
Bookmarks