[PyQt] QSettings usage
Phil Thompson
phil at riverbankcomputing.com
Mon Mar 9 15:05:12 GMT 2009
On Mon, 9 Mar 2009 15:57:46 +0100 (CET), Frédéric
<frederic.mantegazza at gbiloba.org> wrote:
> Hello,
>
> I'm switching from ConfigParser to QSettings, and I have a question:
>
> Do I have to build a QVariant object, or is there a way to just give the
> raw param in setValue() method?
>
>>>> settings.setValue("Dummy", 4)
> TypeError: argument 2 of QSettings.setValue() has an invalid type
At the moment you always have to explicitly create QVariants - that will
change.
Phil
More information about the PyQt
mailing list