ported to Qt5

setCodecForCStrings and setCodecForTr were completely deprecated, so UTF-8 is used by default for everything.
To load strings from UTF-8 in source file literal constants, you need to encode those source files in UTF8 themselves (can be set in QtCreator), and make strings from them with
QString::fromUTF8(literal_constant)