[SOLVED]Represent data as combo box or checkbox
-
hi I have Qsqltablemodel containing two colomns. name and enable/disable. I want to show enable/disable as checkbox or combobox in table view. It is possible to do it? and how to do it? can i use paint function in QItemDelegate to fulfil this?
-
Hi,
IIRC, you can make your column item flags method return the usual flags plus
Qt::ItemIsUserCheckable
-
I din't understand you answer. Can you please explain further?
-
-
Thank you for your help. I have subclass the QSortFilterProxyModel and set flags returns Qt::ItemIsUserCheckble. it worked well
1/5