4

Is it possible to hide icons in the QGIS print composer?

I have used the Customization page in QGIS to create an ini file to simplify the QGIS interface for my users, but I can't see how to do the same for Print Composer.

I know I can turn off entire toolbars, but I need to keep a few icons to allow printing, zooming and changing text.

1 Answer 1

3

You can run the below script in Python console

from PyQt4 import QtGui, QtCore

toolBar = iface.mainWindow().findChild(QtGui.QToolBar,'mMapNavToolBar' )
       
toolBar.removeAction(self.iface.mainWindow().findChild(QtGui.QAction, 'mActionZoomFullExtent'))

you can get the names of the action and toolbar from Customization page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.