Results 1 to 2 of 2

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

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

    Lightbulb popupmenu for QTreeWidget's item when a particular item 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 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

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

    Qt 4.5 is not an IDE, it's an application programming framework.

    Reimplement contextMenuEvent() for your view.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 4th November 2016, 10:12
  2. QListview set selected item
    By Freeman551 in forum Qt Programming
    Replies: 1
    Last Post: 25th December 2009, 01:17
  3. Replies: 2
    Last Post: 24th May 2009, 11:27
  4. How to set selected item of a QListWidget?
    By Lawand in forum Qt Programming
    Replies: 9
    Last Post: 5th April 2009, 12:23
  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.