Skip to content

Use QgsSettings() instead of QtCore.QSettings() and fix to load PostGIS Layers via PostgreSQL service name#39

Open
danceb wants to merge 2 commits intobstroebl:masterfrom
danceb:master
Open

Use QgsSettings() instead of QtCore.QSettings() and fix to load PostGIS Layers via PostgreSQL service name#39
danceb wants to merge 2 commits intobstroebl:masterfrom
danceb:master

Conversation

@danceb
Copy link

@danceb danceb commented Jan 26, 2025

I would reccommend to use QgsSettings() from qgis.core (qgis/QGIS@e1ede70) instead of QSettings() from PyQt5.QtCore as this consider the use of global configuration via the qgis_global_settings.ini (https://docs.qgis.org/3.34/en/docs/user_manual/introduction/qgis_configuration.html#deploying-qgis-within-an-organization).

Furthermore the method ddmanager.loadPostGISLayer was not able to load PostGIS layers via a PostgreSQL service name. The second commit will fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments