Obsolete Members for QCoreApplication

The following members of class QCoreApplication are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Types

enum Encoding { UnicodeUTF8 } (obsolete)

Member Type Documentation

enum QCoreApplication::Encoding

This enum type used to define the 8-bit encoding of character string arguments to translate(). This enum is now obsolete and UTF-8 will be used in all cases.

ConstantValueDescription
QCoreApplication::UnicodeUTF80UTF-8. UTF-8.

See also QObject::tr() and QString::fromUtf8().