Results 1 to 2 of 2

Thread: Hiding an entry from a QMenuBar in Qt4?

  1. #1
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Hiding an entry from a QMenuBar in Qt4?

    I can find no non-deprecated way of hiding an item in a menu bar in Qt4.

    This post: http://qt.nokia.com/developer/faqs/585 gives a method that uses deprecated Qt3 compatibility functions.

    Is there a better way?

  2. #2
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Hiding an entry from a QMenuBar in Qt4?

    If I understood you correctly, you need QAction::setVisible().

  3. The following user says thank you to spud for this useful post:

    joelthelion (24th March 2010)

Similar Threads

  1. getting entry from QListView
    By herbstritter in forum Newbie
    Replies: 3
    Last Post: 20th March 2010, 17:02
  2. Multiline entry in a QMenu
    By tyrdal in forum Qt Programming
    Replies: 0
    Last Post: 28th September 2009, 11:54
  3. No Windows taskbar entry on new process.
    By Khal Drogo in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 17:11
  4. Windws Taskbar Entry
    By December in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2007, 11:53
  5. Add a entry to the application menu
    By mace in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2006, 06:32

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.