[Qgis-developer] Plugin snippets & cookbook
denis.rouzaud at gmail.com
Fri Mar 30 05:57:25 EDT 2012
First, I propose to add these three lines in the code snippets. It is to
include help link in thew plugin menu:
# This initiates the action
self.helpAction = QAction(QIcon(":/plugins/myplugin/icons/help.png"),
# This will open the website url using user's defined browser
QObject.connect(self.helpAction, SIGNAL("triggered()"), lambda:
# This will add the help link in the plugin menu, under the entry "My
self.iface.addPluginToMenu("&My plugin", self.helpAction)
What do you think?
Can someone add this or tell me how to do it?
Also, if I'd like to share a few lines of plugins for demo, what's the
best way? A blog or code snippets in cookbook?
More information about the Qgis-developer