[Qt-interest] qss and QFontDialog
Cyril
cyril.mailing.list at gmail.com
Wed Jan 26 09:47:04 CET 2011
Hi again,
I spent some more time on my qss issue but without success.
For the moment I am afraid that providing global font settings in qss is
simply incompatible with the usage of QFontDialog.
Any opinion or idea is welcome.
Best regards,
Cyril
2011/1/24 Cyril <cyril.mailing.list at gmail.com>
> 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/20110126/2e8dd62d/attachment.html
More information about the Qt-interest-old
mailing list