[Qt-interest] Question about StyleSheets
Rob Simmermon
rob.simmermon at simmtechsolutions.com
Thu Jul 29 22:08:37 CEST 2010
I'm starting to use stylesheets now in my Qt Apps. I have a Widget called
WgtLogViewer that I call "setObjectName" in the constructor to set the
object name to "LogViewer".
Then in my stylesheet I have:
QWidget {
font-size: 12pt;
font-family: "Sans Serif";
}
QWidget#LogViewer {
font-size: 16pt;
font-family: "Courier";
}
For some reason, the Log Viewer is not having the second style applied to
it.\
Also, any way to specify a default theme in the stylesheet, like QMotifStyle
or QWindowsXPStyle or something ilke that?
Thanks.
Rob Simmermon
SIMMTECH Solutions
411 N. Blanche Ave.
Madison, SD 57042
<http://www.simmtechsolutions.com> http://www.simmtechsolutions.com
E - <mailto:rob.simmermon at simmtechsolutions.com>
rob.simmermon at simmtechsolutions.com
T - (605) 868-9404
F - (866) 260-2036
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100729/286e9bbf/attachment.html
More information about the Qt-interest-old
mailing list