[PyQt] [Bug] PyQt5 version 5.7.0 OS X.11.4 (El Capitan) MenuBar requires defocus + refocus of app to work

Andreas Pakulat apaku at gmx.de
Thu Sep 22 18:45:14 BST 2016


Hi,

On Thu, Sep 22, 2016 at 7:03 PM, Maxwell Grady <max.grady at gmail.com> wrote:
> I have a PyQt5 v 5.7.0 app that is cross platform and functioning fine on
> Windows 10 and Ubuntu 16.04 however on OS X there is a problem with the
> menubar.
>
> When the app is started on OS X, the menubar at the top of the screen
> (native menubar location) appears but can not be clicked. Keyboard shortcuts
> still work but clicking the menu has no result. If you switch focus to
> another program (Cmd+Tab) and then switch focus back to the PyQt app
> (Cmd+Tab) then the menu is clickable and functions as normal.

I don't think this is a PyQt issue or even Qt one, I suspect this is
related to the app bundle you use for the application or lack of it. I
see exactly the same issue with an Eclipse based application when
starting it from inside Eclipse (which directly runs java with some
commandline arguments). When launching the final build of the
application through an app bundle everything is working fine.

So I suspect that this is related to having an app bundle or some
setting within the app bundle.

Andreas


More information about the PyQt mailing list