On Sun, Aug 18, 2019 at 3:08 PM Russell Pearsall <robot...@gmail.com> wrote:

> One gotcha with Qsettings is that it will cast everything to a str before
> storing it. So if you pass 3.14 for some setting, you’ll get “3.14” back.
>
> For that reason, I generally subclass qsettings to pickle/unpickle the
> values before passing it to super() to store the value
>

Which version of the Qt bindings have you found this to be true?  In
PySide2 it seems to handle python object types just fine, and it retains a
float type.
I remember PyQt used to have issues when it encoded a bool, and it would
store it as an int. So you would have to cast it back later.


> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/5e0e209c-d07a-4f86-9f97-cf3c0a83df65%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1s_UbxcRx-waRCyR%2BNs_nZwdz%3D1bfvrQYx2pPywfVSQA%40mail.gmail.com.

Reply via email to