[PyQt] style sheets, sliders and buttons
Scott Frankel
frankel at circlesfx.com
Fri Aug 29 18:53:34 BST 2008
Hi,
I'm exploring the use of style sheets with PyQt to control the look of
my application and have run into some squirrelly behavior: most
notably, scrolling sliders no long scroll upwards!
(See attached sample code file.)
Should I have expected that by changing background and foreground
widget colors, the app's scrollbars and buttons would be rendered
"flat?"
Ultimately, I'd like to have all widgets pick up the look defined in
the style sheet, except for scrollbars and buttons. I'd like
scrollbars and buttons to have their default appearances. Is there a
way to specify a "default appearance" parameter in the style sheet for
buttons and scrollbars? Or do I have to declare a specific parameter
set for each selector (widget) in my app, except for buttons and
scrollbars?
Note I'm using:
PyQt-mac-commercial-4.4.2
qt-mac-commercial-src-4.4.2-snapshot-20080711
sip-4.7.6
Mac OSX 10.5.2
Thanks in advance!
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: styleSliderButtonTest.py
Type: text/x-python-script
Size: 3216 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080829/4b28910e/styleSliderButtonTest.bin
-------------- next part --------------
Scott Frankel
As seen on TV
President/VFX Supervisor
Circle-S Studios
510-339-7477 (o)
510-332-2990 (c)
More information about the PyQt
mailing list