Obsolete Members for QCoreApplication
The following class members 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, Latin1, DefaultCodec } (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.
Constant | Value | Description |
QCoreApplication::UnicodeUTF8 | 0 | UTF-8. |
QCoreApplication::Latin1 | 1 | UTF-8. |
QCoreApplication::DefaultCodec | UnicodeUTF8 | UTF-8. |
See also QObject::tr() and QString::fromUtf8().