qt-interest@trolltech.com
[Top] [All Lists]

[Qt-interest] antialiasing of font from stylesheet

Subject: [Qt-interest] antialiasing of font from stylesheet
From: Serge
Date: Tue, 16 Jun 2009 14:34:59 +0400
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
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>