CSS for a QComboBox
I'm trying to style a QComboBox so that the items in the drop down have bigger spaces between them. This is for a touch screen application, the extra space is required so that the touch hits the right item. I've tried:
font: 16pt "MS Shell Dlg 2";
But this doesn't seem to have any affect. After some googling I've found some posts that describe this same problem but they're for older versions of QT.
did you try any other style options with
and did anything work?
I've tried color, border and background and none of those work, which is telling me something I guess!
does change the colour of all the items in the drop down to be green, but it seems that there's no way to style the individual items.
by default, looks like no. Probably you might have to extend QCombobo and build in this capability
this stylesheet, only modifies the height of the combobox itself, the individual item height in the popup is still defined by the font size. Not sure if we can set some margin for the font itself have to chk that :)