|qmake:||QT += localesettings|
- 1 property inherited from QObject
|LocaleItem(const QLocale &locale, QObject *parent = Q_NULLPTR)|
- 31 public functions inherited from QObject
- 9 static public members inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 9 protected functions inherited from QObject
The LocaleItem class represents a locale.
This class holds the name, language, and country code of a locale.
If available, the native country name and language are used. For example, Deutsch and Deutschland for the German locale.
code : const QString
This property holds the locale code string.
The locale code is in the format language_country, where language is a lowercase, two-letter ISO 639 language code, and country is an uppercase, two- or three-letter ISO 3166 country code.
See also QLocale::name().
country : const QString
This property holds the name of the country.
See also QLocale::Country.
language : const QString
This property holds the name of the language.
See also QLocale::Language.
Member Function Documentation
Creates the locale item locale with the parent parent.
QString LocaleItem::code() const
Returns the country code of the country.
Note: Getter function for property code.
QString LocaleItem::country() const
Returns the name of the country.
Note: Getter function for property country.
QString LocaleItem::language() const
Returns the language of the country.
Note: Getter function for property language.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.