PDA

View Full Version : QTreeWidget double click signal



Pinco Pallino
18th November 2006, 16:04
I'm experimenting with QtreeWidget programmin on Linux with QT4.
My problem is the following:
I intercepted the itemDoubleClicked signal, but even if the slot I implemented is called correctly and show me a dialog like I instructed it to, still the tree widget calls the standard editing function of the item clicked.
How can I avoid this behaviour?
Is it possible to override the default double click action?
Sorry if I wasn't too clear
Thank you
roberto

Pinco Pallino
18th November 2006, 16:37
Sorry, found it! The items were editable!
bye everyone

PS: and this f*ed up my reputation once and for all, I guess...

jpn
18th November 2006, 16:37
You can make the items non-editable or change the edit triggers (http://doc.trolltech.com/4.2/qabstractitemview.html#editTriggers-prop). For example:


treeWidget->setEditTriggers(QAbstractItemView::NoEditTriggers) ;