PDA

View Full Version : QTableWidget how could I detect is a cell is editing??



webquinty
30th November 2012, 14:42
Hello,

I would like to detect when a cell is editing or just start edit.

At this moment, I could known when end edit with this code



itemDelegate = new QItemDelegate();
connect(itemDelegate, SIGNAL(closeEditor(QWidget*)), this, SLOT(execute()));
ui.table->setItemDelegateForColumn(4, itemDelegate);


But I dont find how could I deteted when user star edit a cell.
any advice??

Thank you in advance.

wysota
30th November 2012, 15:27
createEditor() on the delegate is called and then setEditorData() is called.