[PyQt] QSettings.value() returns string instead of bool

2011-03-06 Thread Andreas Pakulat
Hi, I'm using sip API v2 for QVariant here and using QSettings.setValue/value does not work correctly for booleans. See the attached two scripts. In write.py everything looks good, I can store and get back a Python boolean. But running read.py which only reads from the QSettings object always

Re: [PyQt] QSettings.value() returns string instead of bool

2011-03-06 Thread Phil Thompson
On Sun, 6 Mar 2011 13:49:16 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'm using sip API v2 for QVariant here and using QSettings.setValue/value does not work correctly for booleans. See the attached two scripts. In write.py everything looks good, I can store and get back a Python

Re: [PyQt] QSettings.value() returns string instead of bool

2011-03-06 Thread Andreas Pakulat
On 06.03.11 13:23:53, Phil Thompson wrote: On Sun, 6 Mar 2011 13:49:16 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'm using sip API v2 for QVariant here and using QSettings.setValue/value does not work correctly for booleans. See the attached two scripts. In write.py everything

Re: [PyQt] QSettings.value() returns string instead of bool

2011-03-06 Thread Hans-Peter Jansen
On Sunday 06 March 2011, 15:13:13 Andreas Pakulat wrote: On 06.03.11 13:23:53, Phil Thompson wrote: On Sun, 6 Mar 2011 13:49:16 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'm using sip API v2 for QVariant here and using QSettings.setValue/value does not work correctly for

Re: [PyQt] QSettings.value() returns string instead of bool

2011-03-06 Thread Andreas Pakulat
On 06.03.11 15:48:19, Hans-Peter Jansen wrote: On Sunday 06 March 2011, 15:13:13 Andreas Pakulat wrote: On 06.03.11 13:23:53, Phil Thompson wrote: On Sun, 6 Mar 2011 13:49:16 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'm using sip API v2 for QVariant here and using