You are not logged in.

1

Wednesday, November 2nd 2016, 2:17am

QComboBox indentation for items

Hi,

is it possible to have indentation/padding/margin for items in the QComboBox popup?

Something like this:


Source code

1
2
3
4
5
6
[ ComboBox ] // The actual QComboBox
   Item A
   Item B
      Item B Sub 1
      Item B Sub 2
    Item C



Basically a faked tree-view structure. I need the icons to be indented as well, so adding just a couple spaces in front of the text per item doesn't do the trick :(

Any way to do this?

Cheers,
Aya