The following code stores a list with QSettings:
The previous code must be executed twice, in the first execution it saves the list, and in the second execution the list is obtained correctly.
But if you pass a list of a single element of type string in the second invocation you get as a string instead of the list:
In PyQt5, the QSettings::value() method has an argument that can be used to indicate the type of data that is expected to avoid this type of problem.
|For Gerrit Dashboard: PYSIDE-1010|
|263350,9||Add optional support for types in QSettings::value||5.12||pyside/pyside-setup||Status: MERGED||+2||0|