Skip to content

PythonQt.QtCore.QLocale

QLocale

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

QLocale is initialized with a language/country pair in its constructor and offers number-to-string and string-to-number conversion functions similar to those in QString.

Example:

QLocale egyptian(QLocale::Arabic, QLocale::Egypt);
QString s1 = egyptian.toString(1.571429E+07, 'e');
QString s2 = egyptian.toString(10);

double d = egyptian.toDouble(s1);
int i = egyptian.toInt(s2);

QLocale supports the concept of a default locale, which is determined from the system's locale settings at application startup. The default locale can be changed by calling the static member setDefault(). Setting the default locale has the following effects:

  • If a QLocale object is constructed with the default constructor, it will use the default locale's settings.
  • QString::toInt(), QString::toDouble(), etc., interpret the string according to the default locale. If this fails, it falls back on the "C" locale.
  • QString::arg() uses the default locale to format a number when its position specifier in the format string contains an 'L', e.g. "%L1".

The following example illustrates how to use QLocale directly:

QLocale::setDefault(QLocale(QLocale::Hebrew, QLocale::Israel));
QLocale hebrew; // Constructs a default QLocale
QString s1 = hebrew.toString(15714.3, 'e');

bool ok;
double d;

QLocale::setDefault(QLocale::C);
d = QString("1234,56").toDouble(&ok);   // ok == false, d == 0
d = QString("1234.56").toDouble(&ok);   // ok == true,  d == 1234.56

QLocale::setDefault(QLocale::German);
d = QString("1234,56").toDouble(&ok);   // ok == false, d == 0
d = QString("1234.56").toDouble(&ok);   // ok == true,  d == 1234.56

QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates));
QString str = QString("%1 %L2 %L3")
      .arg(12345).arg(12345).arg(12345, 0, 16);
// str == "12345 12,345 3039"

When a language/country pair is specified in the constructor, one of three things can happen:

  • If the language/country pair is found in the database, it is used.
  • If the language is found but the country is not, or if the country is AnyCountry, the language is used with the most appropriate available country (for example, Germany for German),
  • If neither the language nor the country are found, QLocale defaults to the default locale (see setDefault()).

Use language() and country() to determine the actual language and country values used.

An alternative method for constructing a QLocale object is by specifying the locale name.

QLocale korean("ko");
QLocale swiss("de_CH");

This constructor converts the locale name to a language/country pair; it does not use the system locale database.

Note: For the current keyboard input locale take a look at QInputMethod::locale().

QLocale's data is based on Common Locale Data Repository v39.

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

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
Abkhazian attribute Any
Afan attribute Any
Afar attribute Any
Afghanistan attribute Any
Afrikaans attribute Any
Aghem attribute Any
Akan attribute Any
Akkadian attribute Any
Akoose attribute Any
AlandIslands attribute Any
Albania attribute Any
Albanian attribute Any
Algeria attribute Any
AlternateQuotation attribute QuotationStyle
AmericanSamoa attribute Any
Amharic attribute Any
AncientEgyptian attribute Any
AncientGreek attribute Any
AncientNorthArabian attribute Any
Andorra attribute Any
Angola attribute Any
Anguilla attribute Any
Antarctica attribute Any
AntiguaAndBarbuda attribute Any
AnyCountry attribute Any
AnyLanguage attribute Any
AnyScript attribute Any
Arabic attribute Any
ArabicScript attribute Any
Aragonese attribute Any
Aramaic attribute Any
Argentina attribute Any
Armenia attribute Any
Armenian attribute Any
ArmenianScript attribute Any
Aruba attribute Any
AscensionIsland attribute Any
Assamese attribute Any
Asturian attribute Any
Asu attribute Any
Atsam attribute Any
Australia attribute Any
Austria attribute Any
Avaric attribute Any
Avestan attribute Any
AvestanScript attribute Any
Aymara attribute Any
Azerbaijan attribute Any
Azerbaijani attribute Any
Bafia attribute Any
Bahamas attribute Any
Bahrain attribute Any
Balinese attribute Any
BalineseScript attribute Any
Bambara attribute Any
BamumScript attribute Any
Bamun attribute Any
Bangladesh attribute Any
Barbados attribute Any
Basaa attribute Any
Bashkir attribute Any
Basque attribute Any
Bassa attribute Any
BassaVahScript attribute Any
BatakScript attribute Any
BatakToba attribute Any
Belarus attribute Any
Belarusian attribute Any
Belgium attribute Any
Belize attribute Any
Bemba attribute Any
Bena attribute Any
Bengali attribute Any
BengaliScript attribute Any
Benin attribute Any
Bermuda attribute Any
Bhutan attribute Any
Bhutani attribute Any
Bihari attribute Any
Bislama attribute Any
Blin attribute Any
Bodo attribute Any
Bolivia attribute Any
Bonaire attribute Any
BopomofoScript attribute Any
BosniaAndHerzegowina attribute Any
Bosnian attribute Any
Botswana attribute Any
BouvetIsland attribute Any
BrahmiScript attribute Any
BrailleScript attribute Any
Brazil attribute Any
Breton attribute Any
BritishIndianOceanTerritory attribute Any
BritishVirginIslands attribute Any
Brunei attribute Any
Buginese attribute Any
BugineseScript attribute Any
Buhid attribute Any
BuhidScript attribute Any
Bulgaria attribute Any
Bulgarian attribute Any
BurkinaFaso attribute Any
Burmese attribute Any
Burundi attribute Any
Byelorussian attribute Any
C attribute Any
Cambodia attribute Any
Cambodian attribute Any
Cameroon attribute Any
Canada attribute Any
CanadianAboriginalScript attribute Any
CanaryIslands attribute Any
CapeVerde attribute Any
Carian attribute Any
CarianScript attribute Any
Catalan attribute Any
CaucasianAlbanianScript attribute Any
CaymanIslands attribute Any
CentralAfricanRepublic attribute Any
CentralKurdish attribute Any
CentralMoroccoTamazight attribute Any
CeutaAndMelilla attribute Any
Chad attribute Any
Chakma attribute Any
ChakmaScript attribute Any
ChamScript attribute Any
Chamorro attribute Any
Chechen attribute Any
Cherokee attribute Any
CherokeeScript attribute Any
Chewa attribute Any
Chiga attribute Any
Chile attribute Any
China attribute Any
Chinese attribute Any
ChristmasIsland attribute Any
Church attribute Any
Chuvash attribute Any
ClassicalMandaic attribute Any
ClippertonIsland attribute Any
CocosIslands attribute Any
Colognian attribute Any
Colombia attribute Any
Comoros attribute Any
CongoBrazzaville attribute Any
CongoKinshasa attribute Any
CongoSwahili attribute Any
CookIslands attribute Any
Coptic attribute Any
CopticScript attribute Any
Cornish attribute Any
Corsican attribute Any
CostaRica attribute Any
Country attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Cree attribute Any
Croatia attribute Any
Croatian attribute Any
Cuba attribute Any
CuneiformScript attribute Any
CuraSao attribute Any
CurrencyDisplayName attribute Any
CurrencyIsoCode attribute Any
CurrencySymbol attribute Any
CurrencySymbolFormat attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
CypriotScript attribute Any
Cyprus attribute Any
CyrillicScript attribute Any
Czech attribute Any
CzechRepublic attribute Any
Danish attribute Any
DemocraticRepublicOfCongo attribute Any
DemocraticRepublicOfKorea attribute Any
Denmark attribute Any
DeseretScript attribute Any
DevanagariScript attribute Any
DiegoGarcia attribute Any
Divehi attribute Any
Djibouti attribute Any
Dogri attribute Any
Dominica attribute Any
DominicanRepublic attribute Any
Duala attribute Any
DuployanScript attribute Any
Dutch attribute Any
Dzongkha attribute Any
EastTimor attribute Any
EasternCham attribute Any
EasternKayah attribute Any
Ecuador attribute Any
Egypt attribute Any
EgyptianHieroglyphsScript attribute Any
ElSalvador attribute Any
ElbasanScript attribute Any
Embu attribute Any
English attribute Any
EquatorialGuinea attribute Any
Eritrea attribute Any
Esperanto attribute Any
Estonia attribute Any
Estonian attribute Any
Ethiopia attribute Any
EthiopicScript attribute Any
Etruscan attribute Any
Ewe attribute Any
Ewondo attribute Any
FalklandIslands attribute Any
FaroeIslands attribute Any
Faroese attribute Any
Fiji attribute Any
Fijian attribute Any
Filipino attribute Any
Finland attribute Any
Finnish attribute Any
FormatType attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
France attribute Any
FraserScript attribute Any
French attribute Any
FrenchGuiana attribute Any
FrenchPolynesia attribute Any
FrenchSouthernTerritories attribute Any
Frisian attribute Any
Friulian attribute Any
Fulah attribute Any
Ga attribute Any
Gabon attribute Any
Gaelic attribute Any
Galician attribute Any
Gambia attribute Any
Ganda attribute Any
Geez attribute Any
Georgia attribute Any
Georgian attribute Any
GeorgianScript attribute Any
German attribute Any
Germany attribute Any
Ghana attribute Any
Gibraltar attribute Any
GlagoliticScript attribute Any
Gothic attribute Any
GothicScript attribute Any
GranthaScript attribute Any
Greece attribute Any
Greek attribute Any
GreekScript attribute Any
Greenland attribute Any
Greenlandic attribute Any
Grenada attribute Any
Guadeloupe attribute Any
Guam attribute Any
Guarani attribute Any
Guatemala attribute Any
Guernsey attribute Any
Guinea attribute Any
GuineaBissau attribute Any
Gujarati attribute Any
GujaratiScript attribute Any
GurmukhiScript attribute Any
Gusii attribute Any
Guyana attribute Any
Haiti attribute Any
Haitian attribute Any
HanScript attribute Any
HangulScript attribute Any
Hanunoo attribute Any
HanunooScript attribute Any
Hausa attribute Any
Hawaiian attribute Any
HeardAndMcDonaldIslands attribute Any
Hebrew attribute Any
HebrewScript attribute Any
Herero attribute Any
Hindi attribute Any
HiraganaScript attribute Any
HiriMotu attribute Any
HmongNjua attribute Any
Ho attribute Any
Honduras attribute Any
HongKong attribute Any
Hungarian attribute Any
Hungary attribute Any
Iceland attribute Any
Icelandic attribute Any
Igbo attribute Any
ImperialAramaicScript attribute Any
ImperialSystem attribute Any
ImperialUKSystem attribute Any
ImperialUSSystem attribute Any
InariSami attribute Any
India attribute Any
Indonesia attribute Any
Indonesian attribute Any
Ingush attribute Any
InscriptionalPahlaviScript attribute Any
InscriptionalParthianScript attribute Any
Interlingua attribute Any
Interlingue attribute Any
Inuktitut attribute Any
Inupiak attribute Any
Iran attribute Any
Iraq attribute Any
Ireland attribute Any
Irish attribute Any
IsleOfMan attribute Any
Israel attribute Any
Italian attribute Any
Italy attribute Any
IvoryCoast attribute Any
Jamaica attribute Any
Japan attribute Any
Japanese attribute Any
JapaneseScript attribute Any
Javanese attribute Any
JavaneseScript attribute Any
Jersey attribute Any
Jju attribute Any
JolaFonyi attribute Any
Jordan attribute Any
Kabuverdianu attribute Any
Kabyle attribute Any
KaithiScript attribute Any
Kako attribute Any
Kalenjin attribute Any
Kamba attribute Any
Kannada attribute Any
KannadaScript attribute Any
Kanuri attribute Any
Kashmiri attribute Any
KatakanaScript attribute Any
KayahLiScript attribute Any
Kazakh attribute Any
Kazakhstan attribute Any
Kenya attribute Any
Kenyang attribute Any
KharoshthiScript attribute Any
Khmer attribute Any
KhmerScript attribute Any
KhojkiScript attribute Any
KhudawadiScript attribute Any
Kiche attribute Any
Kikuyu attribute Any
Kinyarwanda attribute Any
Kirghiz attribute Any
Kiribati attribute Any
Komi attribute Any
Kongo attribute Any
Konkani attribute Any
Korean attribute Any
KoreanScript attribute Any
Koro attribute Any
Kosovo attribute Any
KoyraChiini attribute Any
KoyraboroSenni attribute Any
Kpelle attribute Any
Kurdish attribute Any
Kurundi attribute Any
Kuwait attribute Any
Kwanyama attribute Any
Kwasio attribute Any
Kyrgyzstan attribute Any
Lakota attribute Any
Langi attribute Any
Language attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
LannaScript attribute Any
Lao attribute Any
LaoScript attribute Any
Laos attribute Any
LargeFloweryMiao attribute Any
LastCountry attribute Any
LastLanguage attribute Any
LastScript attribute Any
Latin attribute Any
LatinAmericaAndTheCaribbean attribute Any
LatinScript attribute Any
Latvia attribute Any
Latvian attribute Any
Lebanon attribute Any
Lepcha attribute Any
LepchaScript attribute Any
Lesotho attribute Any
Lezghian attribute Any
Liberia attribute Any
Libya attribute Any
Liechtenstein attribute Any
Limbu attribute Any
LimbuScript attribute Any
Limburgish attribute Any
LinearA attribute Any
LinearAScript attribute Any
LinearBScript attribute Any
Lingala attribute Any
Lisu attribute Any
Lithuania attribute Any
Lithuanian attribute Any
LongFormat attribute Any
LowGerman attribute Any
LowerSorbian attribute Any
Lu attribute Any
LubaKatanga attribute Any
LuleSami attribute Any
Luo attribute Any
Luxembourg attribute Any
Luxembourgish attribute Any
Luyia attribute Any
Lycian attribute Any
LycianScript attribute Any
Lydian attribute Any
LydianScript attribute Any
Macau attribute Any
Macedonia attribute Any
Macedonian attribute Any
Machame attribute Any
Madagascar attribute Any
MahajaniScript attribute Any
Maithili attribute Any
MakhuwaMeetto attribute Any
Makonde attribute Any
Malagasy attribute Any
Malawi attribute Any
Malay attribute Any
Malayalam attribute Any
MalayalamScript attribute Any
Malaysia attribute Any
Maldives attribute Any
Mali attribute Any
Malta attribute Any
Maltese attribute Any
MandaeanScript attribute Any
Mandingo attribute Any
ManichaeanMiddlePersian attribute Any
ManichaeanScript attribute Any
Manipuri attribute Any
Manx attribute Any
Maori attribute Any
Mapuche attribute Any
Marathi attribute Any
MarshallIslands attribute Any
Marshallese attribute Any
Martinique attribute Any
Masai attribute Any
Mauritania attribute Any
Mauritius attribute Any
Mayotte attribute Any
MeasurementSystem attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
MeiteiMayekScript attribute Any
Mende attribute Any
MendeKikakuiScript attribute Any
Meroitic attribute Any
MeroiticCursiveScript attribute Any
MeroiticScript attribute Any
Meru attribute Any
Meta attribute Any
MetricSystem attribute Any
Mexico attribute Any
Micronesia attribute Any
ModiScript attribute Any
Mohawk attribute Any
Moldavian attribute Any
Moldova attribute Any
Monaco attribute Any
Mongolia attribute Any
Mongolian attribute Any
MongolianScript attribute Any
Mono attribute Any
Montenegro attribute Any
Montserrat attribute Any
Morisyen attribute Any
Morocco attribute Any
Mozambique attribute Any
MroScript attribute Any
Mundang attribute Any
Myanmar attribute Any
MyanmarScript attribute Any
NabataeanScript attribute Any
Nama attribute Any
Namibia attribute Any
NarrowFormat attribute Any
NauruCountry attribute Any
NauruLanguage attribute Any
Navaho attribute Any
Ndonga attribute Any
Nepal attribute Any
Nepali attribute Any
Netherlands attribute Any
NewCaledonia attribute Any
NewTaiLueScript attribute Any
NewZealand attribute Any
Ngiemboon attribute Any
Ngomba attribute Any
Nicaragua attribute Any
Niger attribute Any
Nigeria attribute Any
Niue attribute Any
Nko attribute Any
NkoScript attribute Any
NorfolkIsland attribute Any
NorthKorea attribute Any
NorthNdebele attribute Any
NorthernMarianaIslands attribute Any
NorthernSami attribute Any
NorthernSotho attribute Any
NorthernThai attribute Any
Norway attribute Any
Norwegian attribute Any
NorwegianBokmal attribute Any
NorwegianNynorsk attribute Any
Nuer attribute Any
NumberOption attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
NumberOptions attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Nyanja attribute Any
Nyankole attribute Any
Occitan attribute Any
OghamScript attribute Any
Ojibwa attribute Any
OlChikiScript attribute Any
OldIrish attribute Any
OldItalicScript attribute Any
OldNorse attribute Any
OldNorthArabianScript attribute Any
OldPermicScript attribute Any
OldPersian attribute Any
OldPersianScript attribute Any
OldSouthArabianScript attribute Any
OldTurkish attribute Any
Oman attribute Any
OmitGroupSeparator attribute Any
Oriya attribute Any
OriyaScript attribute Any
OrkhonScript attribute Any
Oromo attribute Any
OsmanyaScript attribute Any
Ossetic attribute Any
PahawhHmongScript attribute Any
Pahlavi attribute Any
Pakistan attribute Any
Palau attribute Any
PalestinianTerritories attribute Any
Pali attribute Any
PalmyreneScript attribute Any
Panama attribute Any
PapuaNewGuinea attribute Any
Paraguay attribute Any
Parthian attribute Any
Pashto attribute Any
PauCinHauScript attribute Any
PeoplesRepublicOfCongo attribute Any
Persian attribute Any
Peru attribute Any
PhagsPaScript attribute Any
Philippines attribute Any
Phoenician attribute Any
PhoenicianScript attribute Any
Pitcairn attribute Any
Poland attribute Any
Polish attribute Any (shared captured text)
PollardPhoneticScript attribute Any
Portugal attribute Any
Portuguese attribute Any
PrakritLanguage attribute Any
Prussian attribute Any
PsalterPahlaviScript attribute Any
PuertoRico attribute Any
Punjabi attribute Any
Qatar attribute Any
Quechua attribute Any
QuotationStyle attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Rejang attribute Any
RejangScript attribute Any
RejectGroupSeparator attribute Any
RepublicOfKorea attribute Any
Reunion attribute Any
RhaetoRomance attribute Any
Romania attribute Any
Romanian attribute Any
Romansh attribute Any
Rombo attribute Any
Rundi attribute Any
RunicScript attribute Any
Russia attribute Any
Russian attribute Any
RussianFederation attribute Any
Rwa attribute Any
Rwanda attribute Any
Sabaean attribute Any
Saho attribute Any
SaintBarthelemy attribute Any
SaintHelena attribute Any
SaintKittsAndNevis attribute Any
SaintLucia attribute Any
SaintMartin attribute Any
SaintPierreAndMiquelon attribute Any
SaintVincentAndTheGrenadines attribute Any
Sakha attribute Any
Samaritan attribute Any
SamaritanScript attribute Any
Samburu attribute Any
Samoa attribute Any
Samoan attribute Any
SanMarino attribute Any
Sango attribute Any
Sangu attribute Any
Sanskrit attribute Any
Santali attribute Any
SaoTomeAndPrincipe attribute Any
Sardinian attribute Any
SaudiArabia attribute Any
Saurashtra attribute Any
SaurashtraScript attribute Any
Script attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Sena attribute Any
Senegal attribute Any
Serbia attribute Any
Serbian attribute Any
SerboCroatian attribute Any
Seychelles attribute Any
Shambala attribute Any
SharadaScript attribute Any
ShavianScript attribute Any
Shona attribute Any
ShortFormat attribute Any
SichuanYi attribute Any
Sidamo attribute Any
SiddhamScript attribute Any
SierraLeone attribute Any
SimplifiedChineseScript attribute Any
SimplifiedHanScript attribute Any
Sindhi attribute Any
Singapore attribute Any
Sinhala attribute Any
SinhalaScript attribute Any
SintMaarten attribute Any
SkoltSami attribute Any
Slovak attribute Any
Slovakia attribute Any
Slovenia attribute Any
Slovenian attribute Any
Soga attribute Any
SolomonIslands attribute Any
Somali attribute Any
Somalia attribute Any
Sora attribute Any
SoraSompengScript attribute Any
SouthAfrica attribute Any
SouthGeorgiaAndTheSouthSandwichIslands attribute Any
SouthKorea attribute Any
SouthNdebele attribute Any
SouthSudan attribute Any
SouthernSami attribute Any
SouthernSotho attribute Any
Spain attribute Any
Spanish attribute Any
SriLanka attribute Any
StandardMoroccanTamazight attribute Any
StandardQuotation attribute QuotationStyle
Sudan attribute Any
Sundanese attribute Any
SundaneseScript attribute Any
Suriname attribute Any
SvalbardAndJanMayenIslands attribute Any
Swahili attribute Any
Swati attribute Any
Swaziland attribute Any
Sweden attribute Any
Swedish attribute Any
SwissGerman attribute Any
Switzerland attribute Any
Sylheti attribute Any
SylotiNagriScript attribute Any
Syria attribute Any
Syriac attribute Any
SyriacScript attribute Any
SyrianArabRepublic attribute Any
Tachelhit attribute Any
Tagalog attribute Any
TagalogScript attribute Any
Tagbanwa attribute Any
TagbanwaScript attribute Any
Tahitian attribute Any
TaiDam attribute Any
TaiLeScript attribute Any
TaiNua attribute Any
TaiVietScript attribute Any
Taita attribute Any
Taiwan attribute Any
Tajik attribute Any
Tajikistan attribute Any
TakriScript attribute Any
Tamil attribute Any
TamilScript attribute Any
Tanzania attribute Any
Taroko attribute Any
Tasawaq attribute Any
Tatar attribute Any
TedimChin attribute Any
Telugu attribute Any
TeluguScript attribute Any
Teso attribute Any
ThaanaScript attribute Any
Thai attribute Any
ThaiScript attribute Any
Thailand attribute Any
Tibetan attribute Any
TibetanScript attribute Any
TifinaghScript attribute Any
Tigre attribute Any
Tigrinya attribute Any
TirhutaScript attribute Any
Togo attribute Any
Tokelau attribute Any
Tonga attribute Any
Tongan attribute Any
TraditionalChineseScript attribute Any
TraditionalHanScript attribute Any
TrinidadAndTobago attribute Any
TristanDaCunha attribute Any
Tsonga attribute Any
Tswana attribute Any
Tunisia attribute Any
Turkey attribute Any
Turkish attribute Any
Turkmen attribute Any
Turkmenistan attribute Any
TurksAndCaicosIslands attribute Any
Tuvalu attribute Any
Twi attribute Any
Tyap attribute Any
Uganda attribute Any
Ugaritic attribute Any
UgariticScript attribute Any
Uighur attribute Any
Uigur attribute Any
Ukraine attribute Any
Ukrainian attribute Any
UnitedArabEmirates attribute Any
UnitedKingdom attribute Any
UnitedStates attribute Any
UnitedStatesMinorOutlyingIslands attribute Any
UnitedStatesVirginIslands attribute Any
UpperSorbian attribute Any
Urdu attribute Any
Uruguay attribute Any
Uzbek attribute Any
Uzbekistan attribute Any
Vai attribute Any
VaiScript attribute Any
Vanuatu attribute Any
VarangKshitiScript attribute Any
VaticanCityState attribute Any
Venda attribute Any
Venezuela attribute Any
Vietnam attribute Any
Vietnamese attribute Any
Volapuk attribute Any
Vunjo attribute Any
Walamo attribute Any
WallisAndFutunaIslands attribute Any
Walloon attribute Any
Walser attribute Any
Warlpiri attribute Any
Welsh attribute Any
WesternFrisian attribute Any
WesternSahara attribute Any
Wolof attribute Any
Xhosa attribute Any
Yangben attribute Any
Yemen attribute Any
YiScript attribute Any
Yiddish attribute Any
Yoruba attribute Any
Zambia attribute Any
Zarma attribute Any
Zhuang attribute Any
Zimbabwe attribute Any
Zulu attribute Any
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
amText function (self) -> str X.amText() -> str
bcp47Name function (self) -> str X.bcp47Name() -> str
c function (self) -> Any X.c() -> PythonQt.QtCore.QLocale
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
countriesForLanguage function (self, lang: Any) -> tuple X.countriesForLanguage(lang) -> tuple
country function (self) -> Any Returns the country of this locale.
countryToString function (self, country: Any) -> str X.countryToString(country) -> str
createSeparatedList function (self, strl: Any) -> str X.createSeparatedList(strl) -> str
currencySymbol function (self, arg__1: Any) -> str X.currencySymbol(arg__1) -> str
dateFormat function (self, format: Any) -> str X.dateFormat(format) -> str
dateTimeFormat function (self, format: Any) -> str X.dateTimeFormat(format) -> str
dayName function (self, arg__1: int, format: Any) -> str X.dayName(arg__1, format) -> str
decimalPoint function (self) -> str Returns the decimal point character of this locale.
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
exponential function (self) -> str Returns the exponential character of this locale, used to separate exponent from mantissa in some floating-point numeric representations.
firstDayOfWeek function (self) -> Any Returns the first day of the week according to the current locale.
groupSeparator function (self) -> str Returns the group separator character of this locale.
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
language function (self) -> Any Returns the language of this locale.
languageToString function (self, language: Any) -> str X.languageToString(language) -> str
matchingLocales function (self, language: Any, script: Any, country: Any) -> tuple X.matchingLocales(language, script, country) -> tuple
measurementSystem function (self) -> Any Returns the measurement system for the locale.
monthName function (self, arg__1: int, format: Any) -> str X.monthName(arg__1, format) -> str
name function (self) -> str X.name() -> str
nativeCountryName function (self) -> str X.nativeCountryName() -> str
nativeLanguageName function (self) -> str X.nativeLanguageName() -> str
negativeSign function (self) -> str Returns the negative sign character of this locale.
numberOptions function (self) -> Any Returns the options related to number conversions for this [QLocale](https://doc.qt.io/archives/qt-5.15/qlocale.html) instance.
percent function (self) -> str Returns the percent character of this locale.
pmText function (self) -> str X.pmText() -> str
positiveSign function (self) -> str Returns the positive sign character of this locale.
quoteString function (self, str: str, style: Any) -> str X.quoteString(str, style) -> str
readFrom function (self, arg__1: Any) -> Any (shared captured text)
script function (self) -> Any Returns the script of this locale.
scriptToString function (self, script: Any) -> str X.scriptToString(script) -> str
setDefault function (self, locale: Any) -> None Sets the global default locale to locale.
setNumberOptions function (self, options: Any) -> None Sets the options related to number conversions for this [QLocale](https://doc.qt.io/archives/qt-5.15/qlocale.html) instance.
standaloneDayName function (self, arg__1: int, format: Any) -> str X.standaloneDayName(arg__1, format) -> str
standaloneMonthName function (self, arg__1: int, format: Any) -> str X.standaloneMonthName(arg__1, format) -> str
system function (self) -> Any X.system() -> PythonQt.QtCore.QLocale
textDirection function (self) -> Any Returns the text direction of the language.
timeFormat function (self, format: Any) -> str X.timeFormat(format) -> str
toCurrencyString function (self, arg__1: Any, symbol: str) -> str X.toCurrencyString(arg__1, symbol) -> str
toDate function (self, string: str, arg__2: Any) -> Any X.toDate(string, arg__2) -> PythonQt.QtCore.QDate
toDateTime function (self, string: str, format: Any) -> Any X.toDateTime(string, format) -> PythonQt.QtCore.QDateTime
toDouble function (self, s: str, ok: Any) -> float X.toDouble(s, ok) -> float
toFloat function (self, s: str, ok: Any) -> float X.toFloat(s, ok) -> float
toInt function (self, s: str, ok: Any) -> int X.toInt(s, ok) -> int
toLongLong function (self, s: str, ok: Any) -> int X.toLongLong(s, ok) -> int
toLower function (self, str: str) -> str X.toLower(str) -> str
toShort function (self, s: str, ok: Any) -> int X.toShort(s, ok) -> int
toString function (self, i: Any, f: Any, prec: Any) -> str X.toString(i, f, prec) -> str
toTime function (self, string: str, arg__2: Any) -> Any X.toTime(string, arg__2) -> PythonQt.QtCore.QTime
toUInt function (self, s: str, ok: Any) -> int X.toUInt(s, ok) -> int
toULongLong function (self, s: str, ok: Any) -> int X.toULongLong(s, ok) -> int
toUShort function (self, s: str, ok: Any) -> int X.toUShort(s, ok) -> int
toUpper function (self, str: str) -> str X.toUpper(str) -> str
uiLanguages function (self) -> tuple X.uiLanguages() -> tuple
weekdays function (self) -> tuple X.weekdays() -> tuple
writeTo function (self, arg__1: Any) -> Any (shared captured text)
zeroDigit function (self) -> str Returns the zero digit character of this locale.