Timeline for AttributeError when modifying vector layer symbology with PyQGIS
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 4, 2023 at 8:16 | history | edited | Taras♦ | CC BY-SA 4.0 |
added 5 characters in body
|
Jan 28, 2023 at 11:31 | comment | added | Sanaa Ben | Thank you @Kadir for tour help , it's guide me getter to identify the problem with my code . I still have one question : How to change renderer type from Rule-based to single symbol? Or how to directly change the symbology of a Rule-bases | |
Jan 24, 2023 at 20:52 | comment | added | Kadir Şahbaz | You didn't mention the layer had Rule-based symbology. The answer is about "Single Symbol" | |
Jan 24, 2023 at 20:21 | comment | added | Sanaa Ben | Thank you for tour answer, but when i run tour code it gives me this errer: AttributeError: 'QgsRuleBasedRenderer' object has no attribute 'setSymbol' And every time i try to change it ,like instead of setsymbol i write only symbol . Sometimes this error ut shows up with renderer. | |
Jan 24, 2023 at 13:27 | history | answered | Kadir Şahbaz | CC BY-SA 4.0 |