Skip to main content

Questions tagged [qlr]

QGIS Layer Definition file.

Filter by
Sorted by
Tagged with
3 votes
1 answer
1k 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 ...
VilyaSeeFour's user avatar
3 votes
1 answer
7k views

Problem when inserting a QLR file in QGIS

I work with a polyline layer: and the layer located in "G:\desktop\qgis\lyr". After i save the layer in qlr file and saved it in "G:\desktop\qgis\lyr", i try to load the qlr file with "add from ...
newGIS's user avatar
  • 4,082
3 votes
0 answers
384 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... ...
Ricardo's user avatar
  • 31
1 vote
0 answers
372 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 ...
GeorgeC's user avatar
  • 8,298