A QComboBox pops up an QT internal class derived from QAbstractItemView to show all available items. How can I modify the properties of the list (specifically the item's padding).
Using style sheets I have individually tried each of the following:
css Code:
QComboBox { padding: 6px; } QComboBox QAbstractItemView { padding: 6px; } QComboBox QAbstractItemView::item { padding: 6px; } QComboBox QListView::item { padding: 6px; } *::item { padding: 6px; } * { padding: 6px; }To copy to clipboard, switch view to plain text mode
None affect the list items themselves. I even tried using the combobox's view() function and setting the QAbstractItemView's style sheet directly with no success.
Bookmarks