[PyQt] QComboBox stylesheet problem
Michael Held
michael.held at bc.biol.ethz.ch
Mon Jul 13 10:55:59 BST 2009
hi,
I followed the stylesheet example for QComboBox and everything is fine
so far. but the moment I change the background color of QComboBox, the
entire popup-window changes its layout, which I cannot changer anymore.
I add the stylesheet directly to my app after the app was created.
example:
QComboBox {
border: 1px solid darkgray;
}
works fine!
QComboBox {
border: 1px solid darkgray;
border-radius: 3px;
background-color: black;
}
destroys the popup-layout. this is also the case when I follow the
QCombBox example in
http://doc.qtsoftware.com/4.5/stylesheet-examples.html#customizing-qcombobox
I guess this could be a problem of Qt4 and not PyQt4?
system: MacOS 10.5.7, Python 2.6.2, Qt4.5 2009.03,
PyQt-mac-gpl-4.5.2-snapshot-20090709
thanks a lot!
michael
More information about the PyQt
mailing list