You are not logged in.

1

Friday, April 20th 2012, 2:09pm

Application menu disappears when using QApplication in plugin even with qt_mac_set_native_menubar(false)

I am working an Acrobat plugin (SDK acrobat 8) which uses Qt Widgets. It works fine with Qt 4.3.4.
After upgrading to Qt 4.6.4 carbon, it is no longer possible to see Acrobat's menu if QApplication is instanciated.

Source code

1
2
3
4
int argc = 0;
(void)new QApplication(argc, 0, true);

qt_mac_set_native_menubar(false);

With those 3 lines, the acrobat menu does not load, neither can it be quit other than with a force quit.
There are no warning messages, everything seems to be working fine, except that is really does not.

Without those 3 lines, acrobat works well as long as not widgets are created (see QApplication doc).

Why?
Thanks for whatever information you may have

2

Friday, April 20th 2012, 3:01pm

Solution was to use qApp->setAttribute(Qt::AA_MacPluginApplication,true); instead of qt_mac_set_native_menubar(false);
Aren't those two suppose to do the same thing?