Results 1 to 2 of 2

Thread: popupmenu for QTreeWidget's item when a particular item is selected.

  1. #1
    Join Date
    Jan 2010
    Location
    Bhubaneswar, Odisha
    Posts
    25
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question popupmenu for QTreeWidget's item when a particular item is selected.

    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.

  2. #2
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: popupmenu for QTreeWidget's item when a particular item is selected.

    Override contextMenuEvent in QTreeWidget and populate your custom menu at the clicked position.

Similar Threads

  1. Replies: 2
    Last Post: 4th November 2016, 10:12
  2. popupmenu for QTreeWidget's item when a particular item selected.
    By vinod sharma in forum Best Practices in Qt Programming
    Replies: 1
    Last Post: 22nd January 2010, 11:45
  3. QListview set selected item
    By Freeman551 in forum Qt Programming
    Replies: 1
    Last Post: 25th December 2009, 01:17
  4. Replies: 2
    Last Post: 24th May 2009, 11:27
  5. QTreeWidget's Item Widgets
    By jpn in forum Qt Programming
    Replies: 11
    Last Post: 2nd April 2006, 00:56

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.