[PySide] Supporting type argument in QtCore.QSettings.value

Pavel Roskin proski at gnu.org
Wed Jan 14 03:20:38 CET 2015


I tried converting Frescobaldi to PySide, and the biggest annoyance by
far was the lack of the type support in
QtCore.QSettings.value(). I had to fix hundreds of calls to fix errors
like this:

    version = QSettings().value("settings_version", 0, int)
TypeError: PySide.QtCore.QSettings.value(): too many arguments

Would it be possible to follow the approach taken by PyQt and accept
the optional third "type" argument?


Pavel Roskin

More information about the PySide mailing list