My Qt4 apps with a QMenuBar show up fine under Linux and Windows, but will not display under OSX. I have a Xeon 64bit Mac Pro with OSX 10.5.7. I'm using Qt 4.5.2. I've tried building my apps with qmake -spec macx-g++ and using an xcode project. Neither seem to work. Any help is much appreciated.
Thanks,
Regis
Your menu should be displayed in the top-level Mac menu. A full desktop screenshot and a code sample would help.
QMenuBar on Mac OS X
QMenuBar on Mac OS X is a wrapper for using the system-wide menu bar. If you have multiple menu bars in one dialog the outermost menu bar (normally inside a widget with widget flag Qt::Window) will be used for the system-wide menu bar.
QMenuBar documentation
Related
I am trying to customize my toolbar in Netbeans on a MacBook Pro running Sierra 10.12.4.
I can 'add a custom toolbar' and name it, but when I try to drag and drop the desired icons into the bar, they don't get added, don't even register as hovering behavior when attempting it.
Works fine on my PC but not on my Mac.
Is this a bug or am I missing a step, or it just doesn't work on Mac?
When I open multiple windows in my Qt4 app on mac, the toolbar lists them:
When I do the same in Qt5, the toolbar doesn't list any windows my application has:
I've looked around but couldn't find an option. How can I fix this?
It's a bug in Qt, confirmed in other applications as well: https://bugreports.qt.io/browse/QTBUG-59433.
I am struggling to figure out how RCP applications on Mac OS work with "About" and "Preferences" actions. I create them with ActionFactory and place them to relevant file menus. Works fine everywhere. However, on Mac OS those actions get placed into application menu by something which knows better where to put other peoples good actions. But of course they don't work.. Any idea why?
(eclipse target platform 3.7, OSX - the latest El Capitan)
For the 3.x style action bar advisor add the menu item in the normal place but use an ActionContributionItem and set the menu item in be invisible on the Mac:
So for Quit something like:
IWorkbenchAction quitAction = ActionFactory.QUIT.create(window);
register(quitAction);
ActionContributionItem quitItem = new ActionContributionItem(quitAction);
quitItem.setVisible(!Util.isMac());
menu.add(quitItem);
'About' and 'Preferences' can also be specified like this.
Util is org.eclipse.jface.util.Util.
Eclipse will find these items and move them to the correct place.
I need to run an Adobe AIR app across 2 monitors, which cannot be done with fullscreen mode. I am wondering if there is a way to hide the the OSX (Mountain Lion) menu bar. I can span a chromeless AIR window across 2 monitors, but the OSX menu bar is always on top.
Someone posted that they were able to hide the OSX menu bar by using another app (in this post), but so far I have not found a solution.
Sounds like they were using a Native application to remove the UI elements.
I'd suggest you look into doing this through an ANE. If you find the native code for this I'd be happy to wrap it into an ANE for you.
I found an app that can hide the OSX menu bar on Mountain Lion, for AIR apps and pretty much any other apps.
The app is MenuAndDockless
Instructions:
Download the app, install SIMBL loader first (comes with the app download), then install MenuAndDockless app.
Start up the AIR app, or any other kind of app (you will need to restart it if it's already running). Go to the MenuAndDockless Settings (Menu > Window > Settings > Settingsā¦)
Set the desired settings and restart your app.
Here's a detailed manual for the MenuAndDockless app: http://myownapp.com/manuals/mad_manual/
I am developing an application for Mac OS X. In this application, I need to implement "smart notification window". What I mean by this term.
Here some screenshots:
In the app I develop, such "smart notification" will be appear under system bar icon.
If you work on a Mac you might notice a similar windows.
Does anybody has some code tutorial or examples of such "windows" draw.
Working in XCode, Cocoa Environment.
See MAAttachedWindow from Matt Gemmel:
http://mattgemmell.com/source
You'll have to scroll down a bit...