[Qt-interest] antialiasing of font from stylesheet
David Ching
dc at remove-this.dcsoft.com
Thu Jun 18 00:28:09 CEST 2009
"Serge" <mb0 at km.ru> wrote in message news:h17sgn$c0l$1 at eple.troll.no...
> Hi,
>
> if i specify in stylesheet:
> QMenu {
> font-family : "Arial Rounded MT Bold";
> font-size: 10pt;
> }
> - font, used for menu items, is not antialiased
>
> if i write in code:
> QFont menuFont("Arial Rounded MT Bold");
> menuFont.setStyleStrategy(QFont::PreferAntialias);
> menuFont.setPointSize(10);
> QAction *ac = myMenu->addAction(v_name);
> ac->setFont( menuFont );
> - font is antialiased
>
> Is it possible to specify that font from stylesheet must be antialiased?
>
http://doc.trolltech.com/4.5/stylesheet-reference.html#font-style does not
list any styles to set the antialiasing. :-(
-- David
More information about the Qt-interest-old
mailing list