[PyQt] QSettings error on Windows

Scott Frankel frankel at circlesfx.com
Mon Nov 16 21:25:38 GMT 2009

On Nov 14, 2009, at 12:07 PM, Hans-Peter Jansen wrote:

> On Saturday 14 November 2009, 19:35:28 Scott Frankel wrote:
>> Hi,
>> I've put together a simple test app that demonstrates the problem I'm
>> having with QSettings.value() INT arguments on Windows.
>> An invalid argument type error causes the app to crash on startup.
>> Line 37 of the attached file is the culprit.  The line works without
>> issue on OSX.  Do I need to wrap the integer setting value in a  
>> string
>> to work around the invalid type error?  What's common practice for
>> wrestling with integer Windows preference settings?
> This has nothing to do with Windows as a platform, it's rather an  
> sip/PyQt
> version issue concerning QVariants (I guess).

Exactly what I wanted to know.  I've wrapped the ints in strings and  
the app hums nicely again.  My Windows environment is still at PyQt  
4.5.1, SIP 4.8.1.


> Show us your versions, and the exact error.
> Pete
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

More information about the PyQt mailing list