[Qgis-user] Reading Qsettings outside QGis

PIERRE Sylvain sylvain.pierre at cg67.fr
Thu Oct 11 02:34:17 PDT 2012


I'm developping a standalone application (Python, Qt, Qgis) and I would like to read some settings that I currently use in my Qgis projects : PostGis and Spatialite connections.
I suppose I can get this values with QSettings, but I'm not sure.
Is it the right way to do this ?
I'm testing with the code below, with no result :
        settings = QSettings()
        settings.beginGroup("/PostgreSQL/connections")
        keys = settings.childGroups()

        for name in keys:
            QMessageBox.warning(self,"Information",str(name))


Any idea ?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20121011/855ff6df/attachment.html>


More information about the Qgis-user mailing list