[Qt-interest] antialiasing of font from stylesheet

Serge mb0 at km.ru
Tue Jun 16 12:34:59 CEST 2009


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?

--
Serge



More information about the Qt-interest-old mailing list