Skip to main content
I put code in code format and fix minor mistakes
Source Link

How can we access all the keys under QSettings() of QGIS 3.4 and above.? Requirement is such that we need to set some QSettings() keys for smooth working of developed Plugins from outside of QGIS.

But I am not able to access the keys . If I run following lines in the Python Console  (Python is thethe one that comes with QGIS, inside QGIS/apps/Python37/Python.exe)

settings=QSettings()

settings.allKeys()

settings=QSettings()

settings.allKeys()

It results in an empty list. However same 2 lines if we run from QGIS Python Console it gives out all the Key Groups under which settings are stored.

How to access those Key Groups and how to modify them from outside of QGIS Environment.?

How can we access all the keys under QSettings() of QGIS 3.4 and above. Requirement is such that we need to set some QSettings() keys for smooth working of developed Plugins from outside of QGIS.

But I am not able to access the keys . If I run following lines in the Python Console(Python is the one that comes with QGIS inside QGIS/apps/Python37/Python.exe)

settings=QSettings()

settings.allKeys()

It results in an empty list. However same 2 lines if we run from QGIS Python Console it gives out all the Key Groups under which settings are stored.

How to access those Key Groups and how to modify them from outside of QGIS Environment.

How can we access all the keys under QSettings() of QGIS 3.4 and above? Requirement is such that we need to set some QSettings() keys for smooth working of developed Plugins from outside of QGIS.

But I am not able to access the keys . If I run following lines in the Python Console  (the one that comes with QGIS, inside QGIS/apps/Python37/Python.exe)

settings=QSettings()

settings.allKeys()

It results in an empty list. However same 2 lines if we run from QGIS Python Console it gives out all the Key Groups under which settings are stored.

How to access those Key Groups and how to modify them from outside of QGIS Environment?

Source Link

How to Access QSettings() of QGIS from outside QGIS Console

How can we access all the keys under QSettings() of QGIS 3.4 and above. Requirement is such that we need to set some QSettings() keys for smooth working of developed Plugins from outside of QGIS.

But I am not able to access the keys . If I run following lines in the Python Console(Python is the one that comes with QGIS inside QGIS/apps/Python37/Python.exe)

settings=QSettings()

settings.allKeys()

It results in an empty list. However same 2 lines if we run from QGIS Python Console it gives out all the Key Groups under which settings are stored.

How to access those Key Groups and how to modify them from outside of QGIS Environment.