Skip to main content
9 events
when toggle format what by license comment
Nov 13 at 18:06 vote accept Salvatore Diolosà
Nov 13 at 18:05 comment added Salvatore Diolosà I resolved. I re-added two layers in an other function connected to main. I'm sorry and thank you very much.
Nov 13 at 17:06 comment added Salvatore Diolosà The code really is longer but I was focusing on this problem. I tried this your code in a new project and it works, but not in mine. The third solution, then, makes to crash Qgis.
Nov 13 at 11:28 comment added Ben W @SalvatoreDiolosà, I have updated my answer and added visual evidence in the form of screencasts of all of these options working. You can verify the code being run and view the result. I have tested these snippets on multiple machines and versions of QGIS. If these snippets are not working for you then there must be some other reason at play. Without more information I cannot help you further. I answered your question in good faith based on the information at hand.
Nov 13 at 11:24 history edited Ben W CC BY-SA 4.0
added 390 characters in body
Nov 12 at 23:12 history undeleted Ben W
Nov 12 at 23:09 history deleted Ben W via Vote
Nov 12 at 17:38 comment added Salvatore Diolosà I'm sorry, but these solutions don't work: the first doesn't put canv layer at the bottom, it put this layer at second position, above "struttura" and "cartesiano", the second same thing, the third "ch.name()" isn't 'canv', so the code doesn't enter into "if" condition
Nov 11 at 1:00 history answered Ben W CC BY-SA 4.0