Menu bar shows "QtWebEngineCore" instead of program name in MacOS menu bar
-
I am having an odd issue with my PyQt5 application when using PyInstaller to bundle it into a MacOS application.
When I run the application from the command line or via PyCharm, the MacOS menu bar at the top of the screen shows the name of my program, as expected.
However, when PyInstaller has been used to bundle it, then instead of the program title, "QtWebEngineCore" is displayed instead. The rest of the menu items that my code creates are visible, but they don't work- nothing happens when they are clicked. So unfortunately this is more than just a cosmetic problem.
This problem only appeared recently when I added a new element to my application, which uses
from PyQt5.QtWebEngineWidgets import QWebEngineView
in what I think is the standard and correct way.Because the problem only occurs after PyInstaller bundling, it is very difficult to post a minimal reproducible example here.
On Windows, the same problem does not occur, though Windows menu bars are handled differently of course so it's not a fair comparison.
Does anyone have any ideas please as to why this may be happening, and whether this is something off in my code, or whether it could be a MacOS bug with Qt, or PyQt5, or specifically QtWebEngineView?