I've made a few customised plugins using Plugin Builder and QT. They're all up and running, but I'm having some trouble changing the icon picture on the buttons that I've added to the toolbars to run my plugins.
Is there a way to insert my own picture in the button, or even have text instead? The only pic that seems to work is the default icon.png created by the Plugin Builder. I've tried changing the path in the python script (see below) but no avail, it only works with icon.png. Does a new picture have to be a certain size or type?
def initGui(self): """Create the menu entries and toolbar icons inside the QGIS GUI.""" icon_path = ':/plugins/button/icon.png' self.add_action( icon_path, text=self.tr(u'button'), callback=self.run, parent=self.iface.mainWindow())