[Qt-interest] qss and QFontDialog
Cyril
cyril.mailing.list at gmail.com
Mon Jan 24 17:50:10 CET 2011
Hi all,
I am a newbie with stylesheets and maybe I am trying to do something the
wrong way:
My program's main window's stylesheet contains the following:
QMainWindow, QMainWindow * {
font-family: "Arial";
font-size: 10;
}
However, when I open a modal QFontDialog that is a child of my main window
(which I want), its preview lineEdit ridiculously sticks to Arial 10 instead
of showing the currently selected font and size. It looks like the internal
QLineEdit::setFont() gets half overriden by the inherited stylesheet.
Is there a special syntax in css to specify expections for specific style
items? Or a way to force QLineEdit::setFont()'s precedence? Or anything that
could help?
Thanks,
Cyril
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110124/0f001cf2/attachment.html
More information about the Qt-interest-old
mailing list