Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
Qt::ItemIsUserCheckable
I din't understand you answer. Can you please explain further?
See QAbstractItemModel::flags
Thank you for your help. I have subclass the QSortFilterProxyModel and set flags returns Qt::ItemIsUserCheckble. it worked well