the iface main window _PARENT is initialized with a QWidget. If a plugin access the menu bar of the application a AttributeError: 'QWidget' object has no attribute 'menuBar' error is thrown.
I will try to change the QWidget init to a QMainWindow init and make a PR.
Hope it will run.
Hi,
the
iface
main window_PARENT
is initialized with aQWidget
. If a plugin access the menu bar of the application aAttributeError: 'QWidget' object has no attribute 'menuBar'
error is thrown. I will try to change theQWidget
init to aQMainWindow
init and make a PR. Hope it will run.Thanks