Frank Rueter | OHUfx
2018-08-02 06:36:15 UTC
Hi all,
I just wrote a little snippet to store a simple string in a settings file:
|from PySide2 import QtCore settings = QtCore.QSettings("TestName",
"TestApp") settings.setValue('groupName/attrName', 'testValue') |
Then I launch my application that reads the above like this:
|settings = QtCore.QSettings("TestName", "TestApp") my_value =
settings.value('groupName/attrName', 'testValue') |
The app retrieves the value âtestValueâ but now I want to kill the file
and start from scratch.
Problem is, the file does not exist where the docs say it should.
Iâm on OSX and checked:
~/Library/Preferences
as well as:
/Library/Preferences
According to settings.fileName() the plist file should be in:
|~/Library/Preferences/com.testname.TestApp.plist |
but that file does not exist.
Weird thing is when I close and open my app again it still manages to
retrieve the value âtestValueâ, but I have no clue where it gets it from.
What am I missing?
Cheers,
frank
â
--
ohufxLogo 50x50 <http://www.ohufx.com>
*vfx compositing <http://ohufx.com/compositing.html> | *workflow
customisation and consulting <http://ohufx.com/customising.html>* *
*<http://ohufx.com/compositing.html>*
<http://www.nukepedia.com/nubridge>
Your gateway to over 1,000 free tools... right inside of Nuke
<http://www.nukepedia.com/nubridge>
I just wrote a little snippet to store a simple string in a settings file:
|from PySide2 import QtCore settings = QtCore.QSettings("TestName",
"TestApp") settings.setValue('groupName/attrName', 'testValue') |
Then I launch my application that reads the above like this:
|settings = QtCore.QSettings("TestName", "TestApp") my_value =
settings.value('groupName/attrName', 'testValue') |
The app retrieves the value âtestValueâ but now I want to kill the file
and start from scratch.
Problem is, the file does not exist where the docs say it should.
Iâm on OSX and checked:
~/Library/Preferences
as well as:
/Library/Preferences
According to settings.fileName() the plist file should be in:
|~/Library/Preferences/com.testname.TestApp.plist |
but that file does not exist.
Weird thing is when I close and open my app again it still manages to
retrieve the value âtestValueâ, but I have no clue where it gets it from.
What am I missing?
Cheers,
frank
â
--
ohufxLogo 50x50 <http://www.ohufx.com>
*vfx compositing <http://ohufx.com/compositing.html> | *workflow
customisation and consulting <http://ohufx.com/customising.html>* *
*<http://ohufx.com/compositing.html>*
<http://www.nukepedia.com/nubridge>
Your gateway to over 1,000 free tools... right inside of Nuke
<http://www.nukepedia.com/nubridge>