Questions tagged [qlr]

QGIS Layer Definition file.

Filter by
Sorted by
Tagged with
3
votes
0answers
229 views

Adding multiple styles to single layer with pyQGIS? [closed]

On QGIS, I would like to programmatically assign multiple .qml styles to a single layer with python. I can add styles manually from the Properties dialog on the layer by selecting Styles->Add... ...
2
votes
1answer
471 views

Load .qlr with loadNamedStyle

I tried >>>QgsVectorLayer.loadNamedStyle(r'C:\Some\Path\FOO.qlr') Get this error: Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: arguments ...
1
vote
0answers
47 views

QLR loaded via PyQGIS not loading correctly but works when using layer--add qlr

Based on Load .qlr with loadNamedStyle I was able to add a QLR to a python tool via PyQGIS -however, it appears broken... elif ftype=='qlr': try: print ...