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. Main Window Menus don't work on OSX [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Main Window Menus don't work on OSX [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.5k 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.
  • M Offline
    M Offline
    markofzorro
    wrote on last edited by
    #1

    Hi,

    I'm writing code on a Mac with OSX 10.8.4 and QT Creator 5.0.1 as well as MSVC with Windows 7. The QT examples with menus compile and display flawlessly on Windows but the main window menus don't show up on the mac! for some reason the context menu example shows a context menu, but not a main menu.

    When I open a desktop gui project (the top one in the choices), the compiler makes code for a main menu, but this does not show up in the compiled program!

    This looks like a bug to me. In any event I will be MOST grateful if anybody can help me get this to work on my system.

    Thanks.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      Hello,

      Do you mean the menu does not show merged with the Mac menu at the top of the screen?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        markofzorro
        wrote on last edited by
        #3

        Right. I just see a window with no menu bar across the top. Here's what I see.

        "Your text to link here: http://markewhite.com/qt-main-window-on-my-mac/

        If for some reason you get to the home page, just look at the menu on the top and click on "QT Main windo on My Mac" and you'll see an image of my program's output.

        Don't mind the Fiction Intensives stuff. I'm designing a web site for my writing professor.

        Mark

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kenchan
          wrote on last edited by
          #4

          OK, I am still new to Qt myself but I am developing an app that must run on the Mac. No menu bar in the main window is normal for a Mac. The default is to merge it with the Main menu bar at the top of the screen. Apparently Qt does all it can to make this happen. It will not look like a standard Windows application. Mac rules right...

          Here is a link to some documentation about this there are some suggestions for how to change the defaults.

          "Look here":http://qt-project.org/doc/qt-4.8/mac-differences.html

          There is a Mac group so if you post there you might get more suggestions. If I find anything more useful I will post again.

          I hope this helps.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            markofzorro
            wrote on last edited by
            #5

            Thanks a ton!!! I can't believe I overlooked the menus at the top of the screen. Since the windows were pretty small, I never thought to look up there, especially since the tool bars appeared in the small window.

            But, hey, who's complaining. thank God I don't have to do parallel development in VS and Objective C.

            And thanks for letting me know about the Mac group.

            Mark

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kenchan
              wrote on last edited by
              #6

              My pleasure, glad to be of some help.

              1 Reply Last reply
              0

              • Login

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