Skip to content

PythonQt.QtCore.QLocale · declarations 020

Back to PythonQt.QtCore.QLocale

WesternSahara instance-attribute

WesternSahara: Any

Wolof instance-attribute

Wolof: Any

Xhosa instance-attribute

Xhosa: Any

Yangben instance-attribute

Yangben: Any

Yemen instance-attribute

Yemen: Any

YiScript instance-attribute

YiScript: Any

Yiddish instance-attribute

Yiddish: Any

Yoruba instance-attribute

Yoruba: Any

Zambia instance-attribute

Zambia: Any

Zarma instance-attribute

Zarma: Any

Zhuang instance-attribute

Zhuang: Any

Zimbabwe instance-attribute

Zimbabwe: Any

Zulu instance-attribute

Zulu: Any

amText

amText() -> str

X.amText() -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::amText() const

Returns the localized name of the "AM" suffix for times specified using the conventions of the 12-hour clock.

This function was introduced in Qt 4.5.

See also pmText().

Upstream PySide2 reference signatures (binding differences may apply):

amText(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#amText

bcp47Name

bcp47Name() -> str

X.bcp47Name() -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::bcp47Name() const

Returns the dash-separated language, script and country (and possibly other BCP47 fields) of this locale as a string.

Unlike the uiLanguages() the returned value of the bcp47Name() represents the locale name of the QLocale data but not the language the user-interface should be in.

This function tries to conform the locale name to BCP47.

This function was introduced in Qt 4.8.

See also language(), country(), script(), and uiLanguages().

Upstream PySide2 reference signatures (binding differences may apply):

bcp47Name(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#bcp47Name

c

c() -> Any

X.c() -> PythonQt.QtCore.QLocale

Supplemental documentation: Qt 5 reference:

[static] QLocale QLocale::c()

Returns a QLocale object initialized to the "C" locale.

This locale is based on en_US but with various quirks of its own, such as simplified number formatting and its own date formatting. It implements the POSIX standards that describe the behavior of standard library functions of the "C" programming language.

Among other things, this means its collation order is based on the ASCII values of letters, so that (for case-sensitive sorting) all upper-case letters sort before any lower-case one (rather than each letter's upper- and lower-case forms sorting adjacent to one another, before the next letter's two forms).

See also system().

Upstream PySide2 reference signatures (binding differences may apply):

c() -> PySide2.QtCore.QLocale

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#c

countriesForLanguage

countriesForLanguage(lang: Any) -> tuple

X.countriesForLanguage(lang) -> tuple

Upstream PySide2 reference signatures (binding differences may apply):

countriesForLanguage(lang: PySide2.QtCore.QLocale.Language) -> typing.List[PySide2.QtCore.QLocale.Country]

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#countriesForLanguage

country

country() -> Any

X.country()

Supplemental documentation: Qt 5 reference:

QLocale::Country QLocale::country() const

Returns the country of this locale.

See also language(), script(), countryToString(), and bcp47Name().

Upstream PySide2 reference signatures (binding differences may apply):

country(self) -> PySide2.QtCore.QLocale.Country

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#country

countryToString

countryToString(country: Any) -> str

X.countryToString(country) -> str

Supplemental documentation: Qt 5 reference:

[static] QString QLocale::countryToString(QLocale::Country country)

Returns a QString containing the name of country.

See also languageToString(), scriptToString(), country(), and bcp47Name().

Upstream PySide2 reference signatures (binding differences may apply):

countryToString(country: PySide2.QtCore.QLocale.Country) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#countryToString

createSeparatedList

createSeparatedList(strl: Any) -> str

X.createSeparatedList(strl) -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::createSeparatedList(const QStringList \&list) const

Returns a string that represents a join of a given list of strings with a separator defined by the locale.

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

createSeparatedList(self, strl: typing.Sequence[str]) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#createSeparatedList

currencySymbol

currencySymbol(arg__1: Any) -> str

X.currencySymbol(arg__1) -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::currencySymbol(QLocale::CurrencySymbolFormat format \= CurrencySymbol) const

Returns a currency symbol according to the format.

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

currencySymbol(self, arg__1: PySide2.QtCore.QLocale.CurrencySymbolFormat=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#currencySymbol

dateFormat

dateFormat(format: Any) -> str

X.dateFormat(format) -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::dateFormat(QLocale::FormatType format \= LongFormat) const

Returns the date format used for the current locale.

If format is LongFormat, the format will be elaborate, otherwise it will be short. For example, LongFormat for the en_US locale is dddd, MMMM d, yyyy, ShortFormat is M/d/yy.

This function was introduced in Qt 4.1.

See also QDate::toString() and QDate::fromString().

Upstream PySide2 reference signatures (binding differences may apply):

dateFormat(self, format: PySide2.QtCore.QLocale.FormatType=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#dateFormat

dateTimeFormat

dateTimeFormat(format: Any) -> str

X.dateTimeFormat(format) -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::dateTimeFormat(QLocale::FormatType format \= LongFormat) const

Returns the date time format used for the current locale.

If format is LongFormat, the format will be elaborate, otherwise it will be short. For example, LongFormat for the en_US locale is dddd, MMMM d, yyyy h:mm:ss AP t, ShortFormat is M/d/yy h:mm AP.

This function was introduced in Qt 4.4.

See also QDateTime::toString() and QDateTime::fromString().

Upstream PySide2 reference signatures (binding differences may apply):

dateTimeFormat(self, format: PySide2.QtCore.QLocale.FormatType=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#dateTimeFormat

dayName

dayName(arg__1: int, format: Any) -> str

X.dayName(arg__1, format) -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::dayName(int day, QLocale::FormatType type \= LongFormat) const

Returns the localized name of the day (where 1 represents Monday, 2 represents Tuesday and so on), in the format specified by type.

For example, if the locale is en_US and day is 1, LongFormat will return Monday, ShortFormat Mon, and NarrowFormat M.

This function was introduced in Qt 4.2.

See also monthName() and standaloneDayName().

Upstream PySide2 reference signatures (binding differences may apply):

dayName(self, arg__1: int, format: PySide2.QtCore.QLocale.FormatType=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#dayName

decimalPoint

decimalPoint() -> str

X.decimalPoint()

Supplemental documentation: Qt 5 reference:

QChar QLocale::decimalPoint() const

Returns the decimal point character of this locale.

Note: This function shall change to return a QString instead of QChar in Qt6. Callers are encouraged to exploit the QString(QChar) constructor to convert early in preparation for this.

This function was introduced in Qt 4.1.

See also groupSeparator() and toString().

Upstream PySide2 reference signatures (binding differences may apply):

decimalPoint(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#decimalPoint

exponential

exponential() -> str

X.exponential()

Supplemental documentation: Qt 5 reference:

QChar QLocale::exponential() const

Returns the exponential character of this locale, used to separate exponent from mantissa in some floating-point numeric representations.

Note: This function shall change to return a QString instead of QChar in Qt6. Callers are encouraged to exploit the QString(QChar) constructor to convert early in preparation for this.

This function was introduced in Qt 4.1.

See also toString(double, char, int).

Upstream PySide2 reference signatures (binding differences may apply):

exponential(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#exponential

firstDayOfWeek

firstDayOfWeek() -> Any

X.firstDayOfWeek()

Supplemental documentation: Qt 5 reference:

Qt::DayOfWeek QLocale::firstDayOfWeek() const

Returns the first day of the week according to the current locale.

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

firstDayOfWeek(self) -> PySide2.QtCore.Qt.DayOfWeek

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#firstDayOfWeek

groupSeparator

groupSeparator() -> str

X.groupSeparator()

Supplemental documentation: Qt 5 reference:

QChar QLocale::groupSeparator() const

Returns the group separator character of this locale.

Note: This function shall change to return a QString instead of QChar in Qt6. Callers are encouraged to exploit the QString(QChar) constructor to convert early in preparation for this.

This function was introduced in Qt 4.1.

See also decimalPoint() and toString().

Upstream PySide2 reference signatures (binding differences may apply):

groupSeparator(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#groupSeparator

language

language() -> Any

X.language()

Supplemental documentation: Qt 5 reference:

QLocale::Language QLocale::language() const

Returns the language of this locale.

See also script(), country(), languageToString(), and bcp47Name().

Upstream PySide2 reference signatures (binding differences may apply):

language(self) -> PySide2.QtCore.QLocale.Language

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#language

languageToString

languageToString(language: Any) -> str

X.languageToString(language) -> str

Supplemental documentation: Qt 5 reference:

[static] QString QLocale::languageToString(QLocale::Language language)

Returns a QString containing the name of language.

See also countryToString(), scriptToString(), and bcp47Name().

Upstream PySide2 reference signatures (binding differences may apply):

languageToString(language: PySide2.QtCore.QLocale.Language) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#languageToString

matchingLocales

matchingLocales(language: Any, script: Any, country: Any) -> tuple

X.matchingLocales(language, script, country) -> tuple

Supplemental documentation: Qt 5 reference:

[static] QList\<QLocale> QLocale::matchingLocales(QLocale::Language language, QLocale::Script script, QLocale::Country country)

Returns a list of valid locale objects that match the given language, script and country.

Getting a list of all locales: QList\<QLocale> allLocales \= QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::AnyCountry);

Getting a list of locales suitable for Russia: QList\<QLocale> locales \= QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::Russia);

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

matchingLocales(language: PySide2.QtCore.QLocale.Language, script: PySide2.QtCore.QLocale.Script, country: PySide2.QtCore.QLocale.Country) -> typing.List[PySide2.QtCore.QLocale]

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#matchingLocales

measurementSystem

measurementSystem() -> Any

X.measurementSystem()

Supplemental documentation: Qt 5 reference:

QLocale::MeasurementSystem QLocale::measurementSystem() const

Returns the measurement system for the locale.

This function was introduced in Qt 4.4.

Upstream PySide2 reference signatures (binding differences may apply):

measurementSystem(self) -> PySide2.QtCore.QLocale.MeasurementSystem

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#measurementSystem

monthName

monthName(arg__1: int, format: Any) -> str

X.monthName(arg__1, format) -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::monthName(int month, QLocale::FormatType type \= LongFormat) const

Returns the localized name of month, in the format specified by type.

For example, if the locale is en_US and month is 1, LongFormat will return January. ShortFormat Jan, and NarrowFormat J.

This function was introduced in Qt 4.2.

See also dayName() and standaloneMonthName().

Upstream PySide2 reference signatures (binding differences may apply):

monthName(self, arg__1: int, format: PySide2.QtCore.QLocale.FormatType=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#monthName

name

name() -> str

X.name() -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::name() const

Returns the language and country of this locale as a string of the form "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.

Note that even if QLocale object was constructed with an explicit script, name() will not contain it for compatibility reasons. Use bcp47Name() instead if you need a full locale name.

See also QLocale(), language(), script(), country(), and bcp47Name().

Upstream PySide2 reference signatures (binding differences may apply):

name(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#name

nativeCountryName

nativeCountryName() -> str

X.nativeCountryName() -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::nativeCountryName() const

Returns a native name of the country for the locale. For example "España" for Spanish/Spain locale.

This function was introduced in Qt 4.8.

See also nativeLanguageName() and countryToString().

Upstream PySide2 reference signatures (binding differences may apply):

nativeCountryName(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#nativeCountryName

nativeLanguageName

nativeLanguageName() -> str

X.nativeLanguageName() -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::nativeLanguageName() const

Returns a native name of the language for the locale. For example "Schwiizertüütsch" for Swiss-German locale.

This function was introduced in Qt 4.8.

See also nativeCountryName() and languageToString().

Upstream PySide2 reference signatures (binding differences may apply):

nativeLanguageName(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#nativeLanguageName

negativeSign

negativeSign() -> str

X.negativeSign()

Supplemental documentation: Qt 5 reference:

QChar QLocale::negativeSign() const

Returns the negative sign character of this locale.

Note: This function shall change to return a QString instead of QChar in Qt6. Callers are encouraged to exploit the QString(QChar) constructor to convert early in preparation for this.

This function was introduced in Qt 4.1.

See also positiveSign() and toString().

Upstream PySide2 reference signatures (binding differences may apply):

negativeSign(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#negativeSign

numberOptions

numberOptions() -> Any

X.numberOptions()

Supplemental documentation: Qt 5 reference:

QLocale::NumberOptions QLocale::numberOptions() const

Returns the options related to number conversions for this QLocale instance.

By default, no options are set for the standard locales, except for the "C" locale, which has OmitGroupSeparator set by default.

This function was introduced in Qt 4.2.

See also setNumberOptions(), toString(), and groupSeparator().

Upstream PySide2 reference signatures (binding differences may apply):

numberOptions(self) -> PySide2.QtCore.QLocale.NumberOptions

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#numberOptions

percent

percent() -> str

X.percent()

Supplemental documentation: Qt 5 reference:

QChar QLocale::percent() const

Returns the percent character of this locale.

Note: This function shall change to return a QString instead of QChar in Qt6. Callers are encouraged to exploit the QString(QChar) constructor to convert early in preparation for this.

This function was introduced in Qt 4.1.

See also toString().

Upstream PySide2 reference signatures (binding differences may apply):

percent(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#percent

pmText

pmText() -> str

X.pmText() -> str

Supplemental documentation: Qt 5 reference:

QString QLocale::pmText() const

Returns the localized name of the "PM" suffix for times specified using the conventions of the 12-hour clock.

This function was introduced in Qt 4.5.

See also amText().

Upstream PySide2 reference signatures (binding differences may apply):

pmText(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qlocale.html#pmText