TransWikia.com

Hide Layer data source popup

Geographic Information Systems Asked by Gareth Shedden on November 26, 2020

I’m using startup.py to import WFS layers in to a project template and ideally I would like to hide the layer data source popup that appears when hovering over the layer name. The popup can be quite big and temporarily obscures the map. I’ve found a way using QToolTip and stylesheets opacity to hide the popup but this also hides the tooltip popup too. Is there a better way ?

QApplication.instance().setStyleSheet("QToolTip {opacity:0%}") .... makes layer and tool popups hidden
QApplication.instance().setStyleSheet("QToolTip.QTreeView {opacity:0%}") ... doesn't work

Using QgsSourceSelectProvider gives me access to the layer tooltip but tells me I can’t change it.

Is there a better / nother way ?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP