I'm new developing plugins for QGIS and am working on a plugin to add some pictures on the Composer layout.
I think the appropriate place to have the plugin menu action is in the Composer menu where one can see what's going on, not the mainWindow where everything happens out of view.
There is little code around about plugins for the Composer.
Can anybody help me with this?
1 Answer 1
To add a personnal menu to all composer windows :
for composerView in iface.activeComposers():
windowComposer = composerView.composerWindow()
menuBar = windowComposer.menuBar()
menuBar.addMenu('&MyMenu')
-
@andy Don't forget to upvote and/or accept answers that help you.2018年06月14日 10:48:01 +00:00Commented Jun 14, 2018 at 10:48
Explore related questions
See similar questions with these tags.