[Qt-jambi-interest] Palette behaving differently when assigning stylesheet
Danny Sporea
dannysporea at yahoo.com
Thu May 28 20:52:36 CEST 2009
Hi all,
I'm still having trouble upgrading to the new 4.5 Jambi release from 4.3 and, besides the Designer issues, I found another inconsistency that I would need a workaround:
I have a dialog with a QListWidget with items and a button. When the button is pushed, the palette of the QListWidget is changed. Everything works fine, unless I apply a stylesheet to the dialog. After that, pushing the button does not produce the same results anymore. Unfortunately this is just a simple example, mine is a lot more complicated and cannot achieve the desired results using a stylesheet on the QListWidget, as opposed on using the palette. Is there a way to block a child widget on receiving the parent stylesheet and messing up the setPalette and allow normal palette behaviour when palette is changed ?
Attached are the files to reproduce the behaviour (run and then uncomment the stylesheet line and rerun). Any workaround would be appreciated.
Thanks,
Danny
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PaletteTestUI.java
Url: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20090528/d54a1de5/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PaletteTestUI.jui
Url: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20090528/d54a1de5/attachment-0001.pl
More information about the Qt-jambi-interest
mailing list