Solved do "tear off menus" work on mac?
-
the documentation doesn't say "no", and i know that NSMenus support it
but when i try, no dice.
-
i'm pretty sure the answer is simply "no"
-
Hi
There is
http://doc.qt.io/qt-5/qmenubar.html#nativeMenuBar-prop
Maybe it must be on/off for it to work.Also this is default FALSE
http://doc.qt.io/qt-4.8/qmenu.html#tearOffEnabled-prop -
yes, if i turn OFF "native menu bar" then the menu "bar" shows at the top of the main window, which is absolutely not what i want (it doesn't look like a mac app) (in this config the tear off menus do indeed work)
what i want is to use the native menu bar, and still have tear off menus. i guess that's not possible?
-
Hi,
Can you show a minimal sample code that shows what you tried ?
-
ui->menuBar->setNativeMenuBar(false); ... menuP->setTearOffEnabled(true);
that works. if the first call passes true, it fails
-
i'm pretty sure the answer is simply "no"
-
I might be wrong but it's likely because macOS tear off representation has been deprecated. See NSMenu setTearOffMenuRepresentation and NSMenuView isTornOff which both states that macOS doesn't support torn off menus.
-
I believe you are correct, but Qt could simply work around that. ie: not use the OS level tear off menus, but just implement them the same way as if not using the native menu bar.