<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 8, 2016 at 10:04 AM, Phillip Feldman <span dir="ltr"><<a href="mailto:phillip.m.feldman@gmail.com" target="_blank">phillip.m.feldman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">My question was badly worded.  The PyQt4/PySide documentation for QComboBox does show a setStyleSheet method for the top-level widget, and this works just fine, but it looks as though there is nothing comparable for the individual combobox options.  </div></blockquote><div><br></div><div>Setting a style sheet on a combobox can have surprising consequences for the visual appearance of the drop down list. In fact the drop down list can end up looking strikingly different to what you might expect -- and depending on your taste, not in a good way. <br><br>The best solution I'm aware of is to use a delegate:<br><br>comboboxDelegate = QStyledItemDelegate()<br>combobox.setItemDelegate(comboboxDelegate)<br><br></div><div>Applying a style sheet to the delegate might solve your problem too.<br><br></div><div>Damon<br></div></div><br>-- <br><div class="gmail_signature"><a href="http://www.damonlynch.net" target="_blank">http://www.damonlynch.net</a><div></div><div></div><div></div></div>
</div></div>