How to get the file name of current style using PyQGIS?

المشرف العام

Administrator
طاقم الإدارة
I get the name of the current style file using layer.styleURI(). Then, I change the style file using layer.loadNamedStyle(different_filename).

However, when I call layer.styleURI() again, it returns the same name as in previous call. How can I get the file name of the current style in QGIS using Python?



أكثر...
 
أعلى