Combo Boxes in Item Views
Combo Boxes in Item Views
Sample code to use combo boxes as editor widgets in an item view or item widget.
The delegate creates a combo box if the index is in the second column of a list view. For the other columns it just returns the default editor, that QStyledItemDelegate [qt.io] creates.
File itemdelegate.h
File itemdelegate.cpp
File main.cpp