Results 1 to 2 of 2

Thread: Context menu shows permanent status messages

  1. #1
    Join Date
    Dec 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Context menu shows permanent status messages

    I'm showing a context menu in the contextMenuEvent handler using

    Qt Code:
    1. void Window::contextMenuEvent(QContextMenuEvent *event){
    2.  
    3. contextMenu->exec(event->globalPos());
    4.  
    5. }
    To copy to clipboard, switch view to plain text mode 

    When the menu is shown, the status messages associated with the QActions are shown permanently. For example, if I hover over an action with a status message, then hover over one without, then the first message will persist and will not even be cleared when the menu is closed by clicking outside it. The status messages work fine when they're shown from a menu bar. How do I change the behaviour of the context menu to this?

    Thanks

  2. #2
    Join Date
    Dec 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Context menu shows permanent status messages

    Sorry for bumping, but anyone?

Similar Threads

  1. Context Menu on QTableWidget
    By ankurjain in forum Qt Programming
    Replies: 9
    Last Post: 17th December 2009, 09:52
  2. Context Menu for specific items in a Tree Widget
    By manekineko in forum Qt Programming
    Replies: 0
    Last Post: 16th November 2009, 01:46
  3. Custom context menu in QTreeView
    By ttvo in forum Qt Programming
    Replies: 5
    Last Post: 3rd April 2009, 22:29
  4. Shortcut key for context menu
    By darshan.hardas in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 20:32
  5. Replies: 4
    Last Post: 25th June 2007, 20:40

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.