1

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?

2

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. – PolyGeo Jun 14 '18 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.