qt-interest@trolltech.com
[Top] [All Lists]

Default menubar on Mac

Subject: Default menubar on Mac
From: "Daniel Miller"
Date: Mon, 3 Apr 2006 08:50:37 -0400

I'm writing a multi-window application with PyQt (Qt 3.3.4) on Mac OS X (10.4). I'm having problems with QMenuBar.

When I close the last window of my application I don't want the application to quit. Instead I'd like to have a default menubar (with File, Edit, etc. menus) like other native Mac apps. However, the default menu bar I get when I close the last window is empty (i.e. it only has the standard Apple and Application menus). The documentation on Qt/Mac Issues[1] says it's possible to create a custom default menubar by creating a "parentless" QMenuBar, but I can't get that to work (i.e. I can create a parentless QMenuBar, but it doesnt become the default menubar). Does anyone have an idea of how I can add items to the default QMenuBar created by Qt? Is there some other way to create a default menubar?

Another idea I had was to use QWorkspace, but I dont want the workspace window (i.e. the parent window in which the child windows are opened). Is there a way to create a QWorkspace without the parent workspace window?

Thanks,

Daniel

[1] http://doc.trolltech.com/3.3/mac-differences.html#8-2

 

TCW Computer Systems has two locations to serve you:
254 S. Esbenshade Rd, Manheim, PA
1920 Lincoln Highway East, Lancaster, PA
Phone: (717) 653-2700 for both locations

** CONFIDENTIAL **
This email communication is intended only for the one to whom it is addressed, and may be privileged, confidential and exempt from disclosure.  If you are not that addressee or responsible for delivery to the addressee, any dissemination of this communication is prohibited. If you received this email in error please reply to the sender. Thank you.

<Prev in Thread] Current Thread [Next in Thread>
  • Default menubar on Mac, Daniel Miller <=