Is it possible to pause/stop labeling temporarily in QGIS like in Arcmap for all layers at once?
The label toolbar offers no solution.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
You could use the following code in the Python Console to create a button on the toolbar which toggles the labels for all vector layers:
action = QAction(QIcon(""), "Turn labels" + "\n" + "ON/OFF", iface.mainWindow()) action.setCheckable(True) iface.addToolBarIcon(action) def label_control(): for layer in QgsProject.instance().mapLayers().values(): if layer.type() == QgsMapLayer.VectorLayer: if action.isChecked() == True: layer.setLabelsEnabled(True) else: layer.setLabelsEnabled(False) layer.triggerRepaint() action.triggered.connect(label_control) # Uncomment line below if you want to remove the icon yourself, # otherwise it will be removed automatically when you restart QGIS iface.removeToolBarIcon(action)
Code was based on the question: How to turn on/off all labels of all layers in QGIS.
You can use the Deactivate/Active Labels plugin which has a button to switch on/off labels for all layers: