Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 OS X menubar empty menu-item not hidden
Forum Updated to NodeBB v4.3 + New Features

Qt5 OS X menubar empty menu-item not hidden

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    drunk_on_pain
    wrote on 26 May 2013, 07:40 last edited by
    #1

    I'm using Qt5 on OS X 10.8 and I'm creating an application with a menu bar in Qt Creator. Placing items like Quit or Preferences in the application menu works by specifying the menuRole accordingly. However, since those items need to be placed in some menu and then get moved automatically by Qt into the application menu I end up with empty menu items.

    According to "this topic in the forums":http://qt-project.org/forums/viewthread/14610/#75437 the empty items should be hidden but for me they are not.

    What I have is this:

    • File
      ** Preferences
      ** <Separator>
      ** Quit
    • Help
      ** About

    Preferences, Quit and About are correctly moved to the application menu. Unfortunately File and Help are still shown. How can I make Qt hide them?

    1 Reply Last reply
    0

    1/1

    26 May 2013, 07:40

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved