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?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Dec 2, 2015 at 5:28

1 Answer 1

2

To add a personnal menu to all composer windows :

for composerView in iface.activeComposers():
 windowComposer = composerView.composerWindow()
 menuBar = windowComposer.menuBar()
 menuBar.addMenu('&MyMenu')
answered Dec 2, 2015 at 8:20
1
  • @andy Don't forget to upvote and/or accept answers that help you. Commented Jun 14, 2018 at 10:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.