Hi, (again)
How do I implement doubleClick event without having my QTreeView go into edit mode ?
Single click signal works fine.
When I use doubleClick signal it does two things :
- first executes my slot (which is nice)
- second it goes into edit mode on that column and row.
I tried setEnabled(false) but then the slot is not activated (I guess this is normal).
Cannot find a member that disables the edit mode.
Is it possible ?
code:
connect( table, SIGNAL( doubleClicked(const QModelIndex&) ),
this, SLOT( selection(const QModelIndex&) ) );
connect( table, SIGNAL( doubleClicked(const QModelIndex&) ),
this, SLOT( selection(const QModelIndex&) ) );
To copy to clipboard, switch view to plain text mode
Bookmarks