[Qgis-user] remove menu item from QGIS menu bar - python plugin

Martin Dobias wonder.sk at gmail.com
Tue Nov 10 03:48:09 PST 2009


Hi,

it's possible to get a reference to any menu (QMenu instance) from
QgisInterface. Then it's possible to get list of actions calling
menu's actions() method and finally to call removeAction() method. See
QWidget reference for details.

Martin

On Sun, Nov 8, 2009 at 4:29 PM, Ivan Mincik <ivan.mincik at gmail.com> wrote:
> Hi list,
> is there any possibility of removing item from QGIS menu bar using Python ?
> For example to remove some item from 'Help'.
>
> Looking to QGIS class reference does not give me simple ideas.
>
> Thanks
> Ivan
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



More information about the Qgis-user mailing list