Dear all,
I am writing a PyQT5 QGIS Plugin to wipe out all xyz connections available
in QGS projects.
I wrote the code below, but I am not achieving my goal and I did not
understand the structure of xyz connections.
def removeAllConnectionsXYZ(self):
s = QSettings()
xyz = 'qgis/connections-xyz'
groupsXYZ = s.childGroups()
for group in groupsXYZ:
s.beginGroup(xyz)
s.remove("")
s.endGroup()
self.dlg.wipeAllConnectionsXyz.clicked.connect(
self.removeAllConnectionsXYZ)
# Any comment will be very appreciated.
#Thank you for your time in advance
#Julierme
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user