PDA

View Full Version : popupmenu for QTreeWidget's item when a particular item is selected.



vinod sharma
20th January 2010, 06:49
Hello to all,
I am new to Qt 4.5 IDE and windows-xp as my operating system.
I am not getting any idea how to show a popupmenu from an existing QTreeWidget's item by pressing right button of mouse.

Thanks in advance for reply.

nikhilqt
20th January 2010, 08:38
Override contextMenuEvent in QTreeWidget and populate your custom menu at the clicked position.