QSettings return type
The type of QSettings return values is specified in the QSettings.value() call. More info:
http://pyqt.sourceforge.net/Docs/PyQt4/pyqt_qsettings.html.
Avant:
settings.value(“/yourboolsetting”, True).toBool()
settings.value(“/yourintsetting”, 10).toInt()[0]
settings.value(“/yourintsetting”).toByteArray()
Qgis 2 :
settings.value(“/yourboolsetting”, True, type=bool)
settings.value(“/yourintsetting”, 10, type=int)
settings.value(“/yourintsetting”, QByteArray(), type=QByteArray)
QtextStream
Avant :
st = QString()
node.save( QTextStream(st), 2 )
Qgis 2 :
st = QByteArray()
qts = QTextStream(st)
qts.setCodec("UTF-8")
node.save( qts, 2 )