PDA

View Full Version : QCombox in qtableview to make whole row selected in single click



anbu01
7th July 2014, 08:32
hi,
I am working on QTableView which has number of QComboBox and QLineEdit.I have QStyledItemDelegate where i set Data accordingly.Everything is working fine but now the problem is combo box is created when i single click on a cell .But this should not happen i want the behavior to be like on single click it should select the entire row and on double click it should create combo box for me.
thanks,

ChrisW67
11th July 2014, 09:26
Set the edit triggers on the table view so that a single click does not enter edit mode:
QAbstractItemView::setEditTriggers()