PDA

View Full Version : right click on QTreeWidget



hbill
13th March 2008, 15:17
Hi

I'm novice in Qt and I have some questions :
how can i use QTreeWidget on "file browser" ?
is there a right click signal on QTreeWidget ? >> i want use a contextual menu

thank you :)

aamer4yu
13th March 2008, 15:22
If u want to browse files, you can use QFileDialog class.

And every widget has QWidget::contextMenuEvent function which you can override to provide a context menu. You can do the same with QTreeWidget.

Hope this helps :)

hbill
13th March 2008, 15:53
And every widget has QWidget::contextMenuEvent function which you can override to provide a context menu. You can do the same with QTreeWidget.

Hope this helps :)

How and where can i call this function ?
[edit]
is it a signal ?!!
[edit]
thanks

wysota
13th March 2008, 16:37
Click on the link in the post.