You are creating a new font object as setFont() takes on of these.
If you only want to modify one property of a font, you first retrieve the current font object, the modify the value you want to change and then set the modified object back on the widget.
Qt Code:
// modify font widget->setFont(font);To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks