[QGIS-Developer] Plugin authors - can/should you all give your plugin toolbars a tooltip?

Andrea Giudiceandrea andreaerdna at libero.it
Fri Nov 6 12:43:27 PST 2020


Hi Alister,
I agree with you and I think the tool tip for a plugin toolbar should be
"mandatory", cause is the only way for the user to know which plugin the
toolbar belongs to.

Maybe the addToolBar(name) method of the QgisInterface class could simply 
set the QToolBar tooltip property using the same provided toolbar name, so
every plugin toolbar will have a default tooltip.


Regards.

Andrea



Alister Hood-2 wrote
> QGIS does now display tooltips on the handles of the built-in toolbars,
> but
> none of the plugin toolbars I see have tooltips yet.  I doubt there is any
> reason they shouldn't - it's probably just that the plugin builder doesn't
> include the code for it.
> 
> If you maintain a plugin which provides a toolbar, it seems that the fix
> is
> typically as simple as adding something like this in your plugin __init__
> where you create the toolbar:
>         self.toolbar.setToolTip(u'FlowEstimator Toolbar')
> I'm sure there are plenty of users like me who will appreciate it if
> everyone starts doing this!





--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list