I noticed the issue when developing in pyqt, but have not tested it in pyside2. Thanks for the heads up, it would be great if that was addressed!
On Saturday, August 17, 2019 at 8:28:01 PM UTC-7, Justin Israel wrote: > > > > On Sun, Aug 18, 2019 at 3:08 PM Russell Pearsall <robo...@gmail.com > <javascript:>> 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 <javascript:>. >> 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/97d66f35-f9f6-4cb0-adee-93832810edbc%40googlegroups.com.