Re: [Interest] QActions not moved to application menu properly

2020-09-22 Thread Ben Haller via Interest
You are a good guesser, Sean! I tried commenting out the call I make to: setAttribute(Qt::WA_DeleteOnClose); when I’m setting up my main windows. With that commented out, things work fine. I’m leaking the document window and everything it owns, of course, so that isn’t great; but it work

Re: [Interest] QActions not moved to application menu properly

2020-09-22 Thread Murphy, Sean
I'm not on a Mac right now, so I can't try this, so I don’t know if this will work: As each window (I assume these are QMainWindow, or at least inherit from one) is closed, are you deleting them? If so, when you get to the last one, could you hide it instead of deleting it? Or when you've dele

Re: [Interest] QActions not moved to application menu properly

2020-09-22 Thread Ben Haller via Interest
A little followup; sorry, this should have been in my first email. It would probably be useful to show more code; here’s the method where I create the global menu bar: void QtSLiMAppDelegate::makeGlobalMenuBar(void) { #ifdef __APPLE__ if (!windowlessMenuBar) { windowlessMenuBa

[Interest] QActions not moved to application menu properly

2020-09-22 Thread Ben Haller via Interest
Hi all. I’m on Qt 5.14.2, with a Qt Widgets based app that runs on both macOS and Linux. I’m having trouble getting my menu bar to work. So that things work smoothly on Linux platforms where there is a menu bar in each main window, I have a menu bar in the .ui file that contains my main windo