QComboBox with groups?
Unsolved
General and Desktop
-
@Dan203
Not that I know of. You would have to roll your own code. AQComboBox
uses aQListView
for the items:QComboBox uses the model/view framework for its popup list and to store its items. By default a QStandardItemModel stores the items and a QListView subclass displays the popuplist.
and that does not support these "categories". You might be able to use
setView()
(and maybesetModel()
) to introduce your own view, with either your own layout (QStyledItemDelegate
) and/or perhaps aQTreeView
.