[PySide] setting colour via stylesheet causes indented combobox items with tick mark

Frank Rueter frank at ohufx.com
Thu Sep 15 23:54:40 CEST 2022


Hi all,

when I set this in a style sheet:
QWidget:item:selected{background-color: red;

my combobox items are indented and have a tick mark in front of them.
How come? And how can I suppress this?
[image: image.png][image: image.png]
Here is a code snippet (the colour in the code is now red so ignore that
bit):
https://gist.github.com/frueter/c36916f8e0901b332a88cbd71ff91c5d

Cheers,
frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220916/b1aec4ad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6516 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220916/b1aec4ad/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 7402 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220916/b1aec4ad/attachment-0001.png>


More information about the PySide mailing list