Don't set codec for QSettings
QTextCodec doesn't exist anymore and setting the codec to UTF-8 isn't required anymore.