Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Then the user could choose a QFont using a QFontDialog, and the font could be used a call to setStyleSheet(), similar to QColor.
Doing something like this does not work:
setStyleSheet("font-family: " + QFont::family() + "; font-size: " + QFont::pixelSize() + "px; font-style: " + QFont::style + "; font-weight: " + QFont::weight() + ";"
as Qt uses a weighting scale from 0 to 99 (similar to, but not the same as, the scales used in Windows or CSS).