Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Menubar does not work until app unfocused and focused again on MacOSX



  • Re: Menubar does not work until app unfocused and focused again on MacOSX

    I'm seeing this same issue running Qt Creator 4.13.3 (Qt 5.12.2) on a Mac running Catalina. Since I'm using PySide2, the workaround given in the posting mentioned would not work for me. Any ideas other than disabling nativeMenuBar? I can't find this bug mentioned, though maybe it's related to https://bugreports.qt.io/browse/QTBUG-73808, so should I file a bug report?



  • Evidently this only occurs when the application is launched through Python in the terminal (e.g., python MainWindow.py). When I package the application using PyInstaller and then launch it through double-clicking the executable, the menubar works as it should.

    So it looks like this is more of a Python issue than a Qt issue. For my own purposes, I'm only designing my application to be launched as an executable, so this doesn't bother me.



  • Evidently this only occurs when the application is launched through Python in the terminal (e.g., python MainWindow.py). When I package the application using PyInstaller and then launch it through double-clicking the executable, the menubar works as it should.

    So it looks like this is more of a Python issue than a Qt issue. For my own purposes, I'm only designing my application to be launched as an executable, so this doesn't bother me.


  • Lifetime Qt Champion

    Hi,

    Glad you found a solution and thanks for sharing it.

    I think that you should consider opening a report about it. This is likely going to be an issue for people developing Python applications and starting it from the terminal.


Log in to reply