PDA

View Full Version : QSqlQueryModel: Delegate with combobox as editor



chri
14th October 2020, 14:33
Hi

I use a QSqlQueryModel (from SQLite-database to tableview) , I succeeded to make it writable.
But I did not succeed, to use a combobox instead of the standardeditor.
Is this possible?

Thanks

ChrisW67
15th October 2020, 09:00
Yes. See the docs for QStyledItemDelegate (and QItemDelegate) and the examples they provide links to