QStyledItemDelegate disable combobox
-
Dear Qt Support,
Am using the QStyledItemDelegate using the tableview and it is having combobox in the 3 column
i want to disable the combobox from the user selection.
i have tried with setDisabled(true) but it doen't help me.
Please provide on this how to disable the combobobox in the tableview using the delegates class
Thanks and Regards
Jagadeesh -
Dear Qt Support,
Am using the QStyledItemDelegate using the tableview and it is having combobox in the 3 column
i want to disable the combobox from the user selection.
i have tried with setDisabled(true) but it doen't help me.
Please provide on this how to disable the combobobox in the tableview using the delegates class
Thanks and Regards
Jagadeesh@Jagadeesh_Babu
CallingQComboBox::setDisabled(true)does indeed disable a combobox.And/or for items in a
QTableViewyou might want its Qt::ItemFlags QAbstractItemModel::flags(const QModelIndex &index) const to return none ofQt::ItemIsSelectable,Qt::ItemIsEditable,Qt::ItemIsEnabled.