[PyQt] QSettings usage

Frédéric frederic.mantegazza at gbiloba.org
Mon Mar 9 14:57:46 GMT 2009


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

Thanks,

--
   Frédéric



More information about the PyQt mailing list