The way a view's cells are drawn is provided by a default QStyledItemDelegate. If you want to change the way the data appears when it is not being editted, or if you want to provide a combo box as the editor, then you need to provide the view with customised (subclassed) QStyledItemDelegate with the paint() and/or createEditor() functions reimplemented. The mechanism is described in the docs.
http://doc.qt.io/qt-5/qstyleditemdelegate.html#details
http://doc.qt.io/qt-5/qtwidgets-item...e-example.html
Bookmarks