incapacitant
2nd March 2006, 11:37
Hi, (again) :o
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&) ) );
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&) ) );