[Qt-interest] QFont - Sans Serif and Monospace for all Plattforms

Till Oliver Knoll till.oliver.knoll at gmail.com
Tue Oct 11 19:05:01 CEST 2011



Am 11.10.2011 um 17:32 schrieb "Kluger, Peter" <Peter.Kluger at SIMPACK.de>:

> 
> 
> I would have like to avoid an ifdef which is what i do now using setFamily("Lucida Console") for
> Windows and setFamily("Monospace") for UNIX, 

Well, as already answered: "Monospace" is NOT a family, it is a style. So did you try QFont::setFontStyle instead? What was the outcome?

Cheers, Oliver


More information about the Qt-interest-old mailing list