GispoCoding / pytest-qgis

A pytest plugin for testing QGIS python plugins
GNU General Public License v2.0
29 stars 8 forks source link

QWidget object has no attribute menuBar #13

Closed JaumeFigueras closed 2 years ago

JaumeFigueras commented 2 years ago

Hi,

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.

Thanks

Joonalai commented 2 years ago

Closed by #14.