# QLocale Class Reference
## [[QtCore](index.htm) module]
各種語言的數量和它們的字符串表示形式之間的QLocale類轉換。[More...](#details)
### Types
* `enum Country { AnyCountry, Afghanistan, Albania, Algeria, ..., LastCountry }`
* `enum CurrencySymbolFormat { CurrencyIsoCode, CurrencySymbol, CurrencyDisplayName }`
* `enum FormatType { LongFormat, ShortFormat, NarrowFormat }`
* `enum Language { C, Abkhazian, Afan, Afar, ..., AnyLanguage }`
* `enum MeasurementSystem { MetricSystem, ImperialSystem }`
* `enum NumberOption { OmitGroupSeparator, RejectGroupSeparator }`
* `class **[NumberOptions](index.htm)**`
* `enum QuotationStyle { StandardQuotation, AlternateQuotation }`
* `enum Script { AnyScript, ArabicScript, CyrillicScript, DeseretScript, ..., TraditionalChineseScript }`
### Methods
* `__init__ (self)`
* `__init__ (self, QString?name)`
* `__init__ (self, Language?language, Country?country?=?QLocale.AnyCountry)`
* `__init__ (self, QLocale?other)`
* `__init__ (self, Language?language, Script?script, Country?country)`
* `QString amText (self)`
* `QString bcp47Name (self)`
* `Country country (self)`
* `QString createSeparatedList (self, QStringList?list)`
* `QString currencySymbol (self, CurrencySymbolFormat?format?=?QLocale.CurrencySymbol)`
* `QString dateFormat (self, FormatType?format?=?QLocale.LongFormat)`
* `QString dateTimeFormat (self, FormatType?format?=?QLocale.LongFormat)`
* `QString dayName (self, int, FormatType?format?=?QLocale.LongFormat)`
* `QChar decimalPoint (self)`
* `QChar exponential (self)`
* `Qt.DayOfWeek firstDayOfWeek (self)`
* `QChar groupSeparator (self)`
* `Language language (self)`
* `MeasurementSystem measurementSystem (self)`
* `QString monthName (self, int, FormatType?format?=?QLocale.LongFormat)`
* `QString name (self)`
* `QString nativeCountryName (self)`
* `QString nativeLanguageName (self)`
* `QChar negativeSign (self)`
* `NumberOptions numberOptions (self)`
* `QChar percent (self)`
* `QString pmText (self)`
* `QChar positiveSign (self)`
* `QString quoteString (self, QString?str, QuotationStyle?style?=?QLocale.StandardQuotation)`
* `Script script (self)`
* `setNumberOptions (self, NumberOptions?options)`
* `QString standaloneDayName (self, int, FormatType?format?=?QLocale.LongFormat)`
* `QString standaloneMonthName (self, int, FormatType?format?=?QLocale.LongFormat)`
* `Qt.LayoutDirection textDirection (self)`
* `QString timeFormat (self, FormatType?format?=?QLocale.LongFormat)`
* `QString toCurrencyString (self, int?value, QString?symbol?=?QString())`
* `QString toCurrencyString (self, float?value, QString?symbol?=?QString())`
* `QString toCurrencyString (self, int?value, QString?symbol?=?QString())`
* `QString toCurrencyString (self, int?value, QString?symbol?=?QString())`
* `QDate toDate (self, QString?string, FormatType?format?=?QLocale.LongFormat)`
* `QDate toDate (self, QString?string, QString?format)`
* `QDateTime toDateTime (self, QString?string, FormatType?format?=?QLocale.LongFormat)`
* `QDateTime toDateTime (self, QString?string, QString?format)`
* `(float, bool?ok) toDouble (self, QString?s)`
* `(float, bool?ok) toFloat (self, QString?s)`
* `(int, bool?ok) toInt (self, QString?s, int?base?=?0)`
* `(int, bool?ok) toLongLong (self, QString?s, int?base?=?0)`
* `QString toLower (self, QString?str)`
* `(int, bool?ok) toShort (self, QString?s, int?base?=?0)`
* `QString toString (self, int?i)`
* `QString toString (self, float?i, str?format?=?'g', int?precision?=?6)`
* `QString toString (self, int?i)`
* `QString toString (self, int?i)`
* `QString toString (self, QDateTime?dateTime, QString?format)`
* `QString toString (self, QDateTime?dateTime, FormatType?format?=?QLocale.LongFormat)`
* `QString toString (self, QDate?date, QString?formatStr)`
* `QString toString (self, QDate?date, FormatType?format?=?QLocale.LongFormat)`
* `QString toString (self, QTime?time, QString?formatStr)`
* `QString toString (self, QTime?time, FormatType?format?=?QLocale.LongFormat)`
* `QTime toTime (self, QString?string, FormatType?format?=?QLocale.LongFormat)`
* `QTime toTime (self, QString?string, QString?format)`
* `(int, bool?ok) toUInt (self, QString?s, int?base?=?0)`
* `(int, bool?ok) toULongLong (self, QString?s, int?base?=?0)`
* `QString toUpper (self, QString?str)`
* `(int, bool?ok) toUShort (self, QString?s, int?base?=?0)`
* `QStringList uiLanguages (self)`
* `list-of-Qt.DayOfWeek weekdays (self)`
* `QChar zeroDigit (self)`
### Static Methods
* `QLocale c ()`
* `list-of-QLocale.Country countriesForLanguage (Language?lang)`
* `QString countryToString (Country?country)`
* `QString languageToString (Language?language)`
* `list-of-QLocale matchingLocales (Language?language, Script?script, Country?country)`
* `QString scriptToString (Script?script)`
* `setDefault (QLocale?locale)`
* `QLocale system ()`
### Special Methods
* `bool __eq__ (self, QLocale?other)`
* `bool __ne__ (self, QLocale?other)`
* * *
## Detailed Description
各種語言的數量和它們的字符串表示形式之間的QLocale類轉換。
QLocale與語言/國家對在其構造函數中初始化,并提供數到字符串和字符串到數字轉換功能類似于[QString](qstring.html)。
例如:
```
QLocale egyptian(QLocale.Arabic, QLocale.Egypt);
[QString](qstring.html) s1 = egyptian.toString(1.571429E+07, 'e');
[QString](qstring.html) s2 = egyptian.toString(10);
double d = egyptian.toDouble(s1);
int i = egyptian.toInt(s2);
```
QLocale支持默認的語言環境,這是從應用程序啟動時系統的區域設置確定的概念。默認的語言環境可以通過調用靜態成員被改變[setDefault](qlocale.html#setDefault)( ) 。設置默認語言環境具有以下效果:
* If a QLocale object is constructed with the default constructor, it will use the default locale's settings.
* [QString.toInt](qstring.html#toInt)(), [QString.toDouble](qstring.html#toDouble)(), etc., interpret the string according to the default locale. If this fails, it falls back on the "C" locale.
* [QString.arg](qstring.html#arg)() uses the default locale to format a number when its position specifier in the format string contains an 'L', e.g. "%L1".
下面的例子演示了如何直接使用QLocale :
```
QLocale.setDefault(QLocale(QLocale.Hebrew, QLocale.Israel));
QLocale hebrew; // Constructs a default QLocale
[QString](qstring.html) s1 = hebrew.toString(15714.3, 'e');
bool ok;
double d;
QLocale.setDefault(QLocale.C);
d = [QString](qstring.html)("1234,56").toDouble(&ok); // ok == false
d = [QString](qstring.html)("1234.56").toDouble(&ok); // ok == true, d == 1234.56
QLocale.setDefault(QLocale.German);
d = [QString](qstring.html)("1234,56").toDouble(&ok); // ok == true, d == 1234.56
d = [QString](qstring.html)("1234.56").toDouble(&ok); // ok == true, d == 1234.56
QLocale.setDefault(QLocale(QLocale.English, QLocale.UnitedStates));
str = [QString](qstring.html)("%1 %L2 %L3")
.arg(12345).arg(12345).arg(12345, 0, 16);
// str == "12345 12,345 3039"
```
當在構造函數中指定的語言/國家對,以下三種情況之一發生:
* 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](qlocale.html#setDefault)()).
使用[language](qlocale.html#language)()和[country](qlocale.html#country)()來確定實際使用的語言和國家價值觀。
構建一個QLocale對象的另一種方法是通過指定的語言環境名稱。
```
QLocale korean("ko");
QLocale swiss("de_CH");
```
此構造函數的語言環境名稱轉換為語言/國家對;它不使用系統區域設置數據庫。
**Note:**對于目前的鍵盤輸入法區域設置來看看[QApplication.keyboardInputLocale](qapplication.html#keyboardInputLocale)( ) 。
QLocale的數據是基于通用語言環境數據倉庫2.0 。
雙到字符串和字符串到雙轉換功能涵蓋以下許可證:
版權所有(c )1991由AT& T。
許可使用,復制,修改和分發本軟件不費任何目的,現予批準,前提是這整個通知包括在其中是或包括一個復制本軟件或修改任何軟件的所有副本,并在所有副本支持文件這樣的軟件。
本軟件是“按原樣”,沒有任何明示或暗示的保證。尤其是,不管是作者還是AT&T公司不提供任何形式關于本軟件或對其適用于任何特定用途的適銷性任何聲明或保證。
本產品包含由加州大學伯克利分校和它的貢獻者開發的軟件。
* * *
## Type Documentation
```
QLocale.Country
```
這個枚舉類型用于指定一個國家。
| Constant | Value |
| --- | --- |
| `QLocale.AnyCountry` | `0` |
| `QLocale.Afghanistan` | `1` |
| `QLocale.Albania` | `2` |
| `QLocale.Algeria` | `3` |
| `QLocale.AmericanSamoa` | `4` |
| `QLocale.Andorra` | `5` |
| `QLocale.Angola` | `6` |
| `QLocale.Anguilla` | `7` |
| `QLocale.Antarctica` | `8` |
| `QLocale.AntiguaAndBarbuda` | `9` |
| `QLocale.Argentina` | `10` |
| `QLocale.Armenia` | `11` |
| `QLocale.Aruba` | `12` |
| `QLocale.Australia` | `13` |
| `QLocale.Austria` | `14` |
| `QLocale.Azerbaijan` | `15` |
| `QLocale.Bahamas` | `16` |
| `QLocale.Bahrain` | `17` |
| `QLocale.Bangladesh` | `18` |
| `QLocale.Barbados` | `19` |
| `QLocale.Belarus` | `20` |
| `QLocale.Belgium` | `21` |
| `QLocale.Belize` | `22` |
| `QLocale.Benin` | `23` |
| `QLocale.Bermuda` | `24` |
| `QLocale.Bhutan` | `25` |
| `QLocale.Bolivia` | `26` |
| `QLocale.BosniaAndHerzegowina` | `27` |
| `QLocale.Botswana` | `28` |
| `QLocale.BouvetIsland` | `29` |
| `QLocale.Brazil` | `30` |
| `QLocale.BritishIndianOceanTerritory` | `31` |
| `QLocale.BruneiDarussalam` | `32` |
| `QLocale.Bulgaria` | `33` |
| `QLocale.BurkinaFaso` | `34` |
| `QLocale.Burundi` | `35` |
| `QLocale.Cambodia` | `36` |
| `QLocale.Cameroon` | `37` |
| `QLocale.Canada` | `38` |
| `QLocale.CapeVerde` | `39` |
| `QLocale.CaymanIslands` | `40` |
| `QLocale.CentralAfricanRepublic` | `41` |
| `QLocale.Chad` | `42` |
| `QLocale.Chile` | `43` |
| `QLocale.China` | `44` |
| `QLocale.ChristmasIsland` | `45` |
| `QLocale.CocosIslands` | `46` |
| `QLocale.Colombia` | `47` |
| `QLocale.Comoros` | `48` |
| `QLocale.DemocraticRepublicOfCongo` | `49` |
| `QLocale.PeoplesRepublicOfCongo` | `50` |
| `QLocale.CookIslands` | `51` |
| `QLocale.CostaRica` | `52` |
| `QLocale.IvoryCoast` | `53` |
| `QLocale.Croatia` | `54` |
| `QLocale.Cuba` | `55` |
| `QLocale.Cyprus` | `56` |
| `QLocale.CzechRepublic` | `57` |
| `QLocale.Denmark` | `58` |
| `QLocale.Djibouti` | `59` |
| `QLocale.Dominica` | `60` |
| `QLocale.DominicanRepublic` | `61` |
| `QLocale.EastTimor` | `62` |
| `QLocale.Ecuador` | `63` |
| `QLocale.Egypt` | `64` |
| `QLocale.ElSalvador` | `65` |
| `QLocale.EquatorialGuinea` | `66` |
| `QLocale.Eritrea` | `67` |
| `QLocale.Estonia` | `68` |
| `QLocale.Ethiopia` | `69` |
| `QLocale.FalklandIslands` | `70` |
| `QLocale.FaroeIslands` | `71` |
| `QLocale.FijiCountry` | `72` |
| `QLocale.Finland` | `73` |
| `QLocale.France` | `74` |
| `QLocale.MetropolitanFrance` | `75` |
| `QLocale.FrenchGuiana` | `76` |
| `QLocale.FrenchPolynesia` | `77` |
| `QLocale.FrenchSouthernTerritories` | `78` |
| `QLocale.Gabon` | `79` |
| `QLocale.Gambia` | `80` |
| `QLocale.Georgia` | `81` |
| `QLocale.Germany` | `82` |
| `QLocale.Ghana` | `83` |
| `QLocale.Gibraltar` | `84` |
| `QLocale.Greece` | `85` |
| `QLocale.Greenland` | `86` |
| `QLocale.Grenada` | `87` |
| `QLocale.Guadeloupe` | `88` |
| `QLocale.Guam` | `89` |
| `QLocale.Guatemala` | `90` |
| `QLocale.Guinea` | `91` |
| `QLocale.GuineaBissau` | `92` |
| `QLocale.Guyana` | `93` |
| `QLocale.Haiti` | `94` |
| `QLocale.HeardAndMcDonaldIslands` | `95` |
| `QLocale.Honduras` | `96` |
| `QLocale.HongKong` | `97` |
| `QLocale.Hungary` | `98` |
| `QLocale.Iceland` | `99` |
| `QLocale.India` | `100` |
| `QLocale.Indonesia` | `101` |
| `QLocale.Iran` | `102` |
| `QLocale.Iraq` | `103` |
| `QLocale.Ireland` | `104` |
| `QLocale.Israel` | `105` |
| `QLocale.Italy` | `106` |
| `QLocale.Jamaica` | `107` |
| `QLocale.Japan` | `108` |
| `QLocale.Jordan` | `109` |
| `QLocale.Kazakhstan` | `110` |
| `QLocale.Kenya` | `111` |
| `QLocale.Kiribati` | `112` |
| `QLocale.DemocraticRepublicOfKorea` | `113` |
| `QLocale.RepublicOfKorea` | `114` |
| `QLocale.Kuwait` | `115` |
| `QLocale.Kyrgyzstan` | `116` |
| `QLocale.Lao` | `117` |
| `QLocale.Latvia` | `118` |
| `QLocale.Lebanon` | `119` |
| `QLocale.Lesotho` | `120` |
| `QLocale.Liberia` | `121` |
| `QLocale.LibyanArabJamahiriya` | `122` |
| `QLocale.Liechtenstein` | `123` |
| `QLocale.Lithuania` | `124` |
| `QLocale.Luxembourg` | `125` |
| `QLocale.Macau` | `126` |
| `QLocale.Macedonia` | `127` |
| `QLocale.Madagascar` | `128` |
| `QLocale.Malawi` | `129` |
| `QLocale.Malaysia` | `130` |
| `QLocale.Maldives` | `131` |
| `QLocale.Mali` | `132` |
| `QLocale.Malta` | `133` |
| `QLocale.MarshallIslands` | `134` |
| `QLocale.Martinique` | `135` |
| `QLocale.Mauritania` | `136` |
| `QLocale.Mauritius` | `137` |
| `QLocale.Mayotte` | `138` |
| `QLocale.Mexico` | `139` |
| `QLocale.Micronesia` | `140` |
| `QLocale.Moldova` | `141` |
| `QLocale.Monaco` | `142` |
| `QLocale.Mongolia` | `143` |
| `QLocale.Montserrat` | `144` |
| `QLocale.Morocco` | `145` |
| `QLocale.Mozambique` | `146` |
| `QLocale.Myanmar` | `147` |
| `QLocale.Namibia` | `148` |
| `QLocale.NauruCountry` | `149` |
| `QLocale.Nepal` | `150` |
| `QLocale.Netherlands` | `151` |
| `QLocale.NetherlandsAntilles` | `152` |
| `QLocale.NewCaledonia` | `153` |
| `QLocale.NewZealand` | `154` |
| `QLocale.Nicaragua` | `155` |
| `QLocale.Niger` | `156` |
| `QLocale.Nigeria` | `157` |
| `QLocale.Niue` | `158` |
| `QLocale.NorfolkIsland` | `159` |
| `QLocale.NorthernMarianaIslands` | `160` |
| `QLocale.Norway` | `161` |
| `QLocale.Oman` | `162` |
| `QLocale.Pakistan` | `163` |
| `QLocale.Palau` | `164` |
| `QLocale.PalestinianTerritory` | `165` |
| `QLocale.Panama` | `166` |
| `QLocale.PapuaNewGuinea` | `167` |
| `QLocale.Paraguay` | `168` |
| `QLocale.Peru` | `169` |
| `QLocale.Philippines` | `170` |
| `QLocale.Pitcairn` | `171` |
| `QLocale.Poland` | `172` |
| `QLocale.Portugal` | `173` |
| `QLocale.PuertoRico` | `174` |
| `QLocale.Qatar` | `175` |
| `QLocale.Reunion` | `176` |
| `QLocale.Romania` | `177` |
| `QLocale.RussianFederation` | `178` |
| `QLocale.Rwanda` | `179` |
| `QLocale.SaintKittsAndNevis` | `180` |
| `QLocale.StLucia` | `181` |
| `QLocale.StVincentAndTheGrenadines` | `182` |
| `QLocale.Samoa` | `183` |
| `QLocale.SanMarino` | `184` |
| `QLocale.SaoTomeAndPrincipe` | `185` |
| `QLocale.SaudiArabia` | `186` |
| `QLocale.Senegal` | `187` |
| `QLocale.SerbiaAndMontenegro` | `241` |
| `QLocale.Seychelles` | `188` |
| `QLocale.SierraLeone` | `189` |
| `QLocale.Singapore` | `190` |
| `QLocale.Slovakia` | `191` |
| `QLocale.Slovenia` | `192` |
| `QLocale.SolomonIslands` | `193` |
| `QLocale.Somalia` | `194` |
| `QLocale.SouthAfrica` | `195` |
| `QLocale.SouthGeorgiaAndTheSouthSandwichIslands` | `196` |
| `QLocale.Spain` | `197` |
| `QLocale.SriLanka` | `198` |
| `QLocale.StHelena` | `199` |
| `QLocale.StPierreAndMiquelon` | `200` |
| `QLocale.Sudan` | `201` |
| `QLocale.Suriname` | `202` |
| `QLocale.SvalbardAndJanMayenIslands` | `203` |
| `QLocale.Swaziland` | `204` |
| `QLocale.Sweden` | `205` |
| `QLocale.Switzerland` | `206` |
| `QLocale.SyrianArabRepublic` | `207` |
| `QLocale.Taiwan` | `208` |
| `QLocale.Tajikistan` | `209` |
| `QLocale.Tanzania` | `210` |
| `QLocale.Thailand` | `211` |
| `QLocale.Togo` | `212` |
| `QLocale.Tokelau` | `213` |
| `QLocale.TongaCountry` | `214` |
| `QLocale.TrinidadAndTobago` | `215` |
| `QLocale.Tunisia` | `216` |
| `QLocale.Turkey` | `217` |
| `QLocale.Turkmenistan` | `218` |
| `QLocale.TurksAndCaicosIslands` | `219` |
| `QLocale.Tuvalu` | `220` |
| `QLocale.Uganda` | `221` |
| `QLocale.Ukraine` | `222` |
| `QLocale.UnitedArabEmirates` | `223` |
| `QLocale.UnitedKingdom` | `224` |
| `QLocale.UnitedStates` | `225` |
| `QLocale.UnitedStatesMinorOutlyingIslands` | `226` |
| `QLocale.Uruguay` | `227` |
| `QLocale.Uzbekistan` | `228` |
| `QLocale.Vanuatu` | `229` |
| `QLocale.VaticanCityState` | `230` |
| `QLocale.Venezuela` | `231` |
| `QLocale.VietNam` | `232` |
| `QLocale.BritishVirginIslands` | `233` |
| `QLocale.USVirginIslands` | `234` |
| `QLocale.WallisAndFutunaIslands` | `235` |
| `QLocale.WesternSahara` | `236` |
| `QLocale.Yemen` | `237` |
| `QLocale.Yugoslavia` | `238` |
| `QLocale.Zambia` | `239` |
| `QLocale.Zimbabwe` | `240` |
| `QLocale.Montenegro` | `242` |
| `QLocale.Serbia` | `243` |
| `QLocale.SaintBarthelemy` | `244` |
| `QLocale.SaintMartin` | `245` |
| `QLocale.LatinAmericaAndTheCaribbean` | `246` |
**See also** [country](qlocale.html#country)()和[countryToString](qlocale.html#countryToString)( ) 。
```
QLocale.CurrencySymbolFormat
```
指定貨幣符號的格式。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.CurrencyIsoCode` | `0` | 一個ISO- 4217代碼的貨幣。 |
| `QLocale.CurrencySymbol` | `1` | 貨幣符號。 |
| `QLocale.CurrencyDisplayName` | `2` | 貨幣的用戶可讀名稱。 |
這個枚舉被引入或修改的Qt 4.8 。
```
QLocale.FormatType
```
這個枚舉變量描述了可以在轉換時使用的格式類型[QDate](qdate.html)和[QTime](qtime.html)對象為字符串。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.LongFormat` | `0` | 長版的日期和月份名稱,例如,返回“月”為月份名稱。 |
| `QLocale.ShortFormat` | `1` | 短版的日期和月份名稱,例如,返回“月”為月份名稱。 |
| `QLocale.NarrowFormat` | `2` | 一個特殊版本的日期和月份名稱使用時,空間是有限的,例如,返回“J”為月份名稱。需要注意的是狹窄的格式可能包含相同的文本不同的月份和日期,或者甚至可以是一個空字符串,如果語言環境不支持狹窄的名字,所以你應該避免使用它的日期格式。另外,對于系統區域設置這種格式是一樣的ShortFormat 。 |
```
QLocale.Language
```
這個枚舉類型用于指定語言。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.AnyLanguage` | `0` | ? |
| `QLocale.C` | `1` | 在“ C”語言環境是相同的行為,以英文/[UnitedStates](qlocale.html#Country-enum)。 |
| `QLocale.Abkhazian` | `2` | ? |
| `QLocale.Afan` | `3` | ? |
| `QLocale.Afar` | `4` | ? |
| `QLocale.Afrikaans` | `5` | ? |
| `QLocale.Albanian` | `6` | ? |
| `QLocale.Amharic` | `7` | ? |
| `QLocale.Arabic` | `8` | ? |
| `QLocale.Armenian` | `9` | ? |
| `QLocale.Assamese` | `10` | ? |
| `QLocale.Aymara` | `11` | ? |
| `QLocale.Azerbaijani` | `12` | ? |
| `QLocale.Bashkir` | `13` | ? |
| `QLocale.Basque` | `14` | ? |
| `QLocale.Bengali` | `15` | ? |
| `QLocale.Bhutani` | `16` | ? |
| `QLocale.Bihari` | `17` | ? |
| `QLocale.Bislama` | `18` | ? |
| `QLocale.Bosnian` | `142` | ? |
| `QLocale.Breton` | `19` | ? |
| `QLocale.Bulgarian` | `20` | ? |
| `QLocale.Burmese` | `21` | ? |
| `QLocale.Byelorussian` | `22` | ? |
| `QLocale.Cambodian` | `23` | ? |
| `QLocale.Catalan` | `24` | ? |
| `QLocale.Chinese` | `25` | ? |
| `QLocale.Cornish` | `145` | ? |
| `QLocale.Corsican` | `26` | ? |
| `QLocale.Croatian` | `27` | ? |
| `QLocale.Czech` | `28` | ? |
| `QLocale.Danish` | `29` | ? |
| `QLocale.Divehi` | `143` | ? |
| `QLocale.Dutch` | `30` | ? |
| `QLocale.English` | `31` | ? |
| `QLocale.Esperanto` | `32` | ? |
| `QLocale.Estonian` | `33` | ? |
| `QLocale.Faroese` | `34` | ? |
| `QLocale.FijiLanguage` | `35` | ? |
| `QLocale.Finnish` | `36` | ? |
| `QLocale.French` | `37` | ? |
| `QLocale.Frisian` | `38` | ? |
| `QLocale.Gaelic` | `39` | ? |
| `QLocale.Galician` | `40` | ? |
| `QLocale.Georgian` | `41` | ? |
| `QLocale.German` | `42` | ? |
| `QLocale.Greek` | `43` | ? |
| `QLocale.Greenlandic` | `44` | ? |
| `QLocale.Guarani` | `45` | ? |
| `QLocale.Gujarati` | `46` | ? |
| `QLocale.Hausa` | `47` | ? |
| `QLocale.Hebrew` | `48` | ? |
| `QLocale.Hindi` | `49` | ? |
| `QLocale.Hungarian` | `50` | ? |
| `QLocale.Icelandic` | `51` | ? |
| `QLocale.Indonesian` | `52` | ? |
| `QLocale.Interlingua` | `53` | ? |
| `QLocale.Interlingue` | `54` | ? |
| `QLocale.Inuktitut` | `55` | ? |
| `QLocale.Inupiak` | `56` | ? |
| `QLocale.Irish` | `57` | ? |
| `QLocale.Italian` | `58` | ? |
| `QLocale.Japanese` | `59` | ? |
| `QLocale.Javanese` | `60` | ? |
| `QLocale.Kannada` | `61` | ? |
| `QLocale.Kashmiri` | `62` | ? |
| `QLocale.Kazakh` | `63` | ? |
| `QLocale.Kinyarwanda` | `64` | ? |
| `QLocale.Kirghiz` | `65` | ? |
| `QLocale.Korean` | `66` | ? |
| `QLocale.Kurdish` | `67` | ? |
| `QLocale.Kurundi` | `Rundi` | ? |
| `QLocale.Laothian` | `69` | ? |
| `QLocale.Latin` | `70` | ? |
| `QLocale.Latvian` | `71` | ? |
| `QLocale.Lingala` | `72` | ? |
| `QLocale.Lithuanian` | `73` | ? |
| `QLocale.Macedonian` | `74` | ? |
| `QLocale.Malagasy` | `75` | ? |
| `QLocale.Malay` | `76` | ? |
| `QLocale.Malayalam` | `77` | ? |
| `QLocale.Maltese` | `78` | ? |
| `QLocale.Manx` | `144` | ? |
| `QLocale.Maori` | `79` | ? |
| `QLocale.Marathi` | `80` | ? |
| `QLocale.Moldavian` | `81` | ? |
| `QLocale.Mongolian` | `82` | ? |
| `QLocale.NauruLanguage` | `83` | ? |
| `QLocale.Nepali` | `84` | ? |
| `QLocale.Norwegian` | `85` | ? |
| `QLocale.NorwegianBokmal` | `Norwegian` | ? |
| `QLocale.Nynorsk` | `141` | 過時,請使用NorwegianNynorsk |
| `QLocale.NorwegianNynorsk` | `Nynorsk` | ? |
| `QLocale.Occitan` | `86` | ? |
| `QLocale.Oriya` | `87` | ? |
| `QLocale.Pashto` | `88` | ? |
| `QLocale.Persian` | `89` | ? |
| `QLocale.Polish` | `90` | ? |
| `QLocale.Portuguese` | `91` | ? |
| `QLocale.Punjabi` | `92` | ? |
| `QLocale.Quechua` | `93` | ? |
| `QLocale.RhaetoRomance` | `94` | ? |
| `QLocale.Romanian` | `95` | ? |
| `QLocale.Russian` | `96` | ? |
| `QLocale.Samoan` | `97` | ? |
| `QLocale.Sangho` | `98` | ? |
| `QLocale.Sanskrit` | `99` | ? |
| `QLocale.Serbian` | `100` | ? |
| `QLocale.SerboCroatian` | `101` | ? |
| `QLocale.Sesotho` | `102` | ? |
| `QLocale.Setswana` | `103` | ? |
| `QLocale.Shona` | `104` | ? |
| `QLocale.Sindhi` | `105` | ? |
| `QLocale.Singhalese` | `106` | ? |
| `QLocale.Siswati` | `107` | ? |
| `QLocale.Slovak` | `108` | ? |
| `QLocale.Slovenian` | `109` | ? |
| `QLocale.Somali` | `110` | ? |
| `QLocale.Spanish` | `111` | ? |
| `QLocale.Sundanese` | `112` | ? |
| `QLocale.Swahili` | `113` | ? |
| `QLocale.Swedish` | `114` | ? |
| `QLocale.Tagalog` | `115` | ? |
| `QLocale.Tajik` | `116` | ? |
| `QLocale.Tamil` | `117` | ? |
| `QLocale.Tatar` | `118` | ? |
| `QLocale.Telugu` | `119` | ? |
| `QLocale.Thai` | `120` | ? |
| `QLocale.Tibetan` | `121` | ? |
| `QLocale.Tigrinya` | `122` | ? |
| `QLocale.TongaLanguage` | `123` | ? |
| `QLocale.Tsonga` | `124` | ? |
| `QLocale.Turkish` | `125` | ? |
| `QLocale.Turkmen` | `126` | ? |
| `QLocale.Twi` | `127` | ? |
| `QLocale.Uigur` | `128` | ? |
| `QLocale.Ukrainian` | `129` | ? |
| `QLocale.Urdu` | `130` | ? |
| `QLocale.Uzbek` | `131` | ? |
| `QLocale.Vietnamese` | `132` | ? |
| `QLocale.Volapuk` | `133` | ? |
| `QLocale.Welsh` | `134` | ? |
| `QLocale.Wolof` | `135` | ? |
| `QLocale.Xhosa` | `136` | ? |
| `QLocale.Yiddish` | `137` | ? |
| `QLocale.Yoruba` | `138` | ? |
| `QLocale.Zhuang` | `139` | ? |
| `QLocale.Zulu` | `140` | ? |
| `QLocale.Bosnian` | `142` | ? |
| `QLocale.Divehi` | `143` | ? |
| `QLocale.Manx` | `144` | ? |
| `QLocale.Cornish` | `145` | ? |
| `QLocale.Akan` | `146` | ? |
| `QLocale.Konkani` | `147` | ? |
| `QLocale.Ga` | `148` | ? |
| `QLocale.Igbo` | `149` | ? |
| `QLocale.Kamba` | `150` | ? |
| `QLocale.Syriac` | `151` | ? |
| `QLocale.Blin` | `152` | ? |
| `QLocale.Geez` | `153` | ? |
| `QLocale.Koro` | `154` | ? |
| `QLocale.Sidamo` | `155` | ? |
| `QLocale.Atsam` | `156` | ? |
| `QLocale.Tigre` | `157` | ? |
| `QLocale.Jju` | `158` | ? |
| `QLocale.Friulian` | `159` | ? |
| `QLocale.Venda` | `160` | ? |
| `QLocale.Ewe` | `161` | ? |
| `QLocale.Walamo` | `162` | ? |
| `QLocale.Hawaiian` | `163` | ? |
| `QLocale.Tyap` | `164` | ? |
| `QLocale.Chewa` | `165` | ? |
| `QLocale.Filipino` | `166` | ? |
| `QLocale.SwissGerman` | `167` | ? |
| `QLocale.SichuanYi` | `168` | ? |
| `QLocale.Kpelle` | `169` | ? |
| `QLocale.LowGerman` | `170` | ? |
| `QLocale.SouthNdebele` | `171` | ? |
| `QLocale.NorthernSotho` | `172` | ? |
| `QLocale.NorthernSami` | `173` | ? |
| `QLocale.Taroko` | `174` | ? |
| `QLocale.Gusii` | `175` | ? |
| `QLocale.Taita` | `176` | ? |
| `QLocale.Fulah` | `177` | ? |
| `QLocale.Kikuyu` | `178` | ? |
| `QLocale.Samburu` | `179` | ? |
| `QLocale.Sena` | `180` | ? |
| `QLocale.NorthNdebele` | `181` | ? |
| `QLocale.Rombo` | `182` | ? |
| `QLocale.Tachelhit` | `183` | ? |
| `QLocale.Kabyle` | `184` | ? |
| `QLocale.Nyankole` | `185` | ? |
| `QLocale.Bena` | `186` | ? |
| `QLocale.Vunjo` | `187` | ? |
| `QLocale.Bambara` | `188` | ? |
| `QLocale.Embu` | `189` | ? |
| `QLocale.Cherokee` | `190` | ? |
| `QLocale.Morisyen` | `191` | ? |
| `QLocale.Makonde` | `192` | ? |
| `QLocale.Langi` | `193` | ? |
| `QLocale.Ganda` | `194` | ? |
| `QLocale.Bemba` | `195` | ? |
| `QLocale.Kabuverdianu` | `196` | ? |
| `QLocale.Meru` | `197` | ? |
| `QLocale.Kalenjin` | `198` | ? |
| `QLocale.Nama` | `199` | ? |
| `QLocale.Machame` | `200` | ? |
| `QLocale.Colognian` | `201` | ? |
| `QLocale.Masai` | `202` | ? |
| `QLocale.Soga` | `203` | ? |
| `QLocale.Luyia` | `204` | ? |
| `QLocale.Asu` | `205` | ? |
| `QLocale.Teso` | `206` | ? |
| `QLocale.Saho` | `207` | ? |
| `QLocale.KoyraChiini` | `208` | ? |
| `QLocale.Rwa` | `209` | ? |
| `QLocale.Luo` | `210` | ? |
| `QLocale.Chiga` | `211` | ? |
| `QLocale.CentralMoroccoTamazight` | `212` | ? |
| `QLocale.KoyraboroSenni` | `213` | ? |
| `QLocale.Shambala` | `214` | ? |
**See also** [language](qlocale.html#language)()和[languageToString](qlocale.html#languageToString)( ) 。
```
QLocale.MeasurementSystem
```
這個枚舉定義了單元用于測量。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.MetricSystem` | `0` | 此值表示度量單位,如米,厘米和毫米。 |
| `QLocale.ImperialSystem` | `1` | 此值表示的英制單位,如英寸和英里。有幾種不同的科舉制度在世界上,這個值代表了美國官方英制單位。 |
這個枚舉被引入或修改的Qt 4.4 。
```
QLocale.NumberOption
```
這個枚舉變量定義了一套數到字符串和字符串到數字的轉換選項。它們可以被檢索以[numberOptions](qlocale.html#numberOptions)( ),并設置用[setNumberOptions](qlocale.html#setNumberOptions)( ) 。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.OmitGroupSeparator` | `0x01` | 如果這個選項被設置,這個數字到字符串的函數將不插入組分隔在它們的返回值。默認是插入組分隔符。 |
| `QLocale.RejectGroupSeparator` | `0x02` | 如果這個選項被設置,如果他們遇到組分隔符在輸入字符串到數字函數將失敗。默認為接受含有正確放置組分隔符的數字。 |
該NumberOptions類型是一個typedef為[QFlags](index.htm)\u003cNumberOption\u003e 。它存儲NumberOption值的或組合。
**See also** [setNumberOptions](qlocale.html#setNumberOptions)()和[numberOptions](qlocale.html#numberOptions)( ) 。
```
QLocale.QuotationStyle
```
這個枚舉定義了一組可能的樣式設置特定報價。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.StandardQuotation` | `0` | 如果這個選項被設置,標準的引號將被用來引用字符串。 |
| `QLocale.AlternateQuotation` | `1` | 如果這個選項被設置,備用引號將被用來引用字符串。 |
這個枚舉被引入或修改的Qt 4.8 。
**See also** [quoteString](qlocale.html#quoteString)( ) 。
```
QLocale.Script
```
這個枚舉類型用于指定一個腳本。
| Constant | Value | Description |
| --- | --- | --- |
| `QLocale.AnyScript` | `0` | ? |
| `QLocale.ArabicScript` | `1` | ? |
| `QLocale.CyrillicScript` | `2` | ? |
| `QLocale.DeseretScript` | `3` | ? |
| `QLocale.GurmukhiScript` | `4` | ? |
| `QLocale.SimplifiedHanScript` | `5` | 同SimplifiedChineseScript |
| `QLocale.SimplifiedChineseScript` | `SimplifiedHanScript` | 同SimplifiedHanScript |
| `QLocale.TraditionalHanScript` | `6` | 同TraditionalChineseScript |
| `QLocale.TraditionalChineseScript` | `TraditionalHanScript` | 同TraditionalHanScript |
| `QLocale.LatinScript` | `7` | ? |
| `QLocale.MongolianScript` | `8` | ? |
| `QLocale.TifinaghScript` | `9` | ? |
這個枚舉被引入或修改的Qt 4.8 。
**See also** [script](qlocale.html#script)( )[scriptToString](qlocale.html#scriptToString)()和[languageToString](qlocale.html#languageToString)( ) 。
* * *
## Method Documentation
```
QLocale.__init__ (self)
```
構造一個[QLocale](qlocale.html)對象的默認區域設置初始化。如果沒有默認的locale使用setDefaultLocale ( )設置,該區域將是相同的由返回的[system](qlocale.html#system)( ) 。
**See also** [setDefault](qlocale.html#setDefault)( ) 。
```
QLocale.__init__ (self, QString?name)
```
構造一個[QLocale](qlocale.html)與指定對象_name_,它的格式為“語言[ _script ] [ _公司] [ @修飾符] [代碼集。 ]”或“C” ,其中:
* language is a lowercase, two-letter, ISO 639 language code,
* script is a titlecase, four-letter, ISO 15924 script code,
* country is an uppercase, two- or three-letter, ISO 3166 country code (also "419" as defined by United Nations),
* and codeset and modifier are ignored.
分隔符可以是下劃線或減號。
如果字符串違背了語言環境格式或語言不是一個有效的ISO 369的代碼中,“ C”語言環境來代替。如果國家不存在,或者不是一個有效的ISO 3166代碼,最適當的國家是選擇了指定的語言。
語言,腳本和國家代碼轉換為各自的`Language`,`Script`和`Country`枚舉。在完成這一轉換的構造函數的功能完全一樣[QLocale](qlocale.html)(國家,腳本語言) 。
此構造方法要比慢得多[QLocale](qlocale.html)(國家,腳本語言) 。
**See also** [bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QLocale.__init__ (self, Language?language, Country?country?=?QLocale.AnyCountry)
```
構造一個[QLocale](qlocale.html)與指定對象_language_和_country_。
* 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](qlocale.html) defaults to the default locale (see [setDefault](qlocale.html#setDefault)()).
語言和國家的實際使用可以使用查詢[language](qlocale.html#language)()和[country](qlocale.html#country)( ) 。
**See also** [setDefault](qlocale.html#setDefault)( )[language](qlocale.html#language)()和[country](qlocale.html#country)( ) 。
```
QLocale.__init__ (self, QLocale?other)
```
構造一個[QLocale](qlocale.html)與指定對象_language_,_script_和_country_。
* If the language/script/country is found in the database, it is used.
* If both _script_ is [AnyScript](qlocale.html#Script-enum) and _country_ is [AnyCountry](qlocale.html#Country-enum), the language is used with the most appropriate available script and country (for example, Germany for German),
* If either _script_ is [AnyScript](qlocale.html#Script-enum) or _country_ is [AnyCountry](qlocale.html#Country-enum), the language is used with the first locale that matches the given _script_ and _country_.
* If neither the language nor the country are found, [QLocale](qlocale.html) defaults to the default locale (see [setDefault](qlocale.html#setDefault)()).
語言,腳本和國家,實際使用可以使用查詢[language](qlocale.html#language)( )[script](qlocale.html#script)()和[country](qlocale.html#country)( ) 。
此功能被引入Qt的4.8 。
**See also** [setDefault](qlocale.html#setDefault)( )[language](qlocale.html#language)( )[script](qlocale.html#script)()和[country](qlocale.html#country)( ) 。
```
QLocale.__init__ (self, Language?language, Script?script, Country?country)
```
構造一個[QLocale](qlocale.html)作為對象的一個副本_other_。
```
QString QLocale.amText (self)
```
返回“AM ”后綴使用12小時制的慣例指定的時間的本地化名稱。
此功能被引入Qt的4.5 。
**See also** [pmText](qlocale.html#pmText)( ) 。
```
QString QLocale.bcp47Name (self)
```
返回此語言環境的破折號分隔的語言,文字和國家(以及其他可能的BCP47域)作為一個字符串。
不同的是[uiLanguages](qlocale.html#uiLanguages)( )的bcp47Name的返回值( )代表的語言環境名稱[QLocale](qlocale.html)數據而不是語言的用戶界面應當英寸
這個函數試圖以符合區域設置名稱BCP47 。
此功能被引入Qt的4.8 。
**See also** [language](qlocale.html#language)( )[country](qlocale.html#country)( )[script](qlocale.html#script)()和[uiLanguages](qlocale.html#uiLanguages)( ) 。
```
QLocale QLocale.c ()
```
[](qlocale.html)
[返回](qlocale.html)[QLocale](qlocale.html)對象初始化為“ C”語言環境。
**See also** [system](qlocale.html#system)( ) 。
```
list-of-QLocale.Country QLocale.countriesForLanguage (Language?lang)
```
```
Country QLocale.country (self)
```
[
返回此語言環境的國家。
](qlocale.html#Country-enum)
[**See also**](qlocale.html#Country-enum) [language](qlocale.html#language)( )[script](qlocale.html#script)( )[countryToString](qlocale.html#countryToString)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QString QLocale.countryToString (Country?country)
```
返回[QString](qstring.html)含有的名_country_。
**See also** [languageToString](qlocale.html#languageToString)( )[scriptToString](qlocale.html#scriptToString)( )[country](qlocale.html#country)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QString QLocale.createSeparatedList (self, QStringList?list)
```
返回一個代表參加的一個給定的字符串_list_字符串與語言環境定義的分隔符。
此功能被引入Qt的4.8 。
```
QString QLocale.currencySymbol (self, CurrencySymbolFormat?format?=?QLocale.CurrencySymbol)
```
根據返回一個貨幣符號_format_。
此功能被引入Qt的4.8 。
```
QString QLocale.dateFormat (self, FormatType?format?=?QLocale.LongFormat)
```
返回用于當前語言環境的日期格式。
If _format_ is [LongFormat](qlocale.html#FormatType-enum)該格式將是一個漫長的版本。否則,它采用了較短的版本。
這個函數是Qt 4.1中引入。
**See also** [QDate.toString](qdate.html#toString)()和[QDate.fromString](qdate.html#fromString)( ) 。
```
QString QLocale.dateTimeFormat (self, FormatType?format?=?QLocale.LongFormat)
```
返回用于當前區域設置的日期時間格式。
If _format_ is [ShortFormat](qlocale.html#FormatType-enum)該格式將是一個短版。否則,它采用了更長的版本。
此功能被引入Qt的4.4 。
**See also** [QDateTime.toString](qdatetime.html#toString)()和[QDateTime.fromString](qdatetime.html#fromString)( ) 。
```
QString QLocale.dayName (self, int, FormatType?format?=?QLocale.LongFormat)
```
返回的本地化名稱_day_(其中, 1表示星期一, 2代表星期二等等) ,在由指定的格式_type_。
這個函數中引入了Qt 4.2中。
**See also** [monthName](qlocale.html#monthName)()和[standaloneDayName](qlocale.html#standaloneDayName)( ) 。
```
QChar QLocale.decimalPoint (self)
```
返回此區域設置的小數點字符。
這個函數是Qt 4.1中引入。
```
QChar QLocale.exponential (self)
```
返回此語言環境的指數字符。
這個函數是Qt 4.1中引入。
```
Qt.DayOfWeek QLocale.firstDayOfWeek (self)
```
[
根據當前的語言環境返回一周的第一天。
此功能被引入Qt的4.8 。
```
QChar QLocale.groupSeparator (self)
```
返回此語言環境的組分隔符。
這個函數是Qt 4.1中引入。
](qt.html#DayOfWeek-enum)
```
Language QLocale.language (self)
```
[
返回此語言環境的語言。
](qlocale.html#Language-enum)
[**See also**](qlocale.html#Language-enum) [script](qlocale.html#script)( )[country](qlocale.html#country)( )[languageToString](qlocale.html#languageToString)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QString QLocale.languageToString (Language?language)
```
返回[QString](qstring.html)含有的名_language_。
**See also** [countryToString](qlocale.html#countryToString)( )[scriptToString](qlocale.html#scriptToString)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
list-of-QLocale QLocale.matchingLocales (Language?language, Script?script, Country?country)
```
返回匹配給定的有效語言環境的對象列表_language_,_script_和_country_。
讓所有語言環境的列表:[QList](index.htm)\u003c[QLocale](qlocale.html)\u003e allLocales = QLocale.matchingLocales ([QLocale.AnyLanguage](qlocale.html#Language-enum),[QLocale.AnyScript](qlocale.html#Script-enum),[QLocale.AnyCountry](qlocale.html#Country-enum)) ;
此功能被引入Qt的4.8 。
```
MeasurementSystem QLocale.measurementSystem (self)
```
[
返回該區域的測量系統。
此功能被引入Qt的4.4 。
```
QString QLocale.monthName (self, int, FormatType?format?=?QLocale.LongFormat)
```
返回的本地化名稱_month_在由指定的格式_type_。
這個函數中引入了Qt 4.2中。
](qlocale.html#MeasurementSystem-enum)
[**See also**](qlocale.html#MeasurementSystem-enum) [dayName](qlocale.html#dayName)()和[standaloneMonthName](qlocale.html#standaloneMonthName)( ) 。
```
QString QLocale.name (self)
```
返回此語言環境的語言和國家為形式的字符串“語言_國家”,其中語言是一個小寫的兩個字母的ISO 639語言代碼,國家是大寫,兩個或三個字母的ISO 3166國家代碼。
請注意,即使[QLocale](qlocale.html)對象是使用顯式的腳本,名字( )將不會包含它的兼容性原因構成。使用[bcp47Name](qlocale.html#bcp47Name)( )來代替,如果你需要一個完整的語言環境名稱。
**See also** [QLocale](qlocale.html#QLocale)( )[language](qlocale.html#language)( )[script](qlocale.html#script)( )[country](qlocale.html#country)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QString QLocale.nativeCountryName (self)
```
返回該國的本土名稱的語言環境。例如“ Espa駉±一個”對西班牙/西班牙語言環境。
此功能被引入Qt的4.8 。
**See also** [nativeLanguageName](qlocale.html#nativeLanguageName)()和[countryToString](qlocale.html#countryToString)( ) 。
```
QString QLocale.nativeLanguageName (self)
```
返回該語言的本機名稱的語言環境。例如“ Schwiizert? ? ? ? TSCH ”的瑞士德語語言環境。
此功能被引入Qt的4.8 。
**See also** [nativeCountryName](qlocale.html#nativeCountryName)()和[languageToString](qlocale.html#languageToString)( ) 。
```
QChar QLocale.negativeSign (self)
```
返回此語言環境的負號字符。
這個函數是Qt 4.1中引入。
```
NumberOptions QLocale.numberOptions (self)
```
[](index.htm)
[返回此相關的數字轉換的選項](index.htm)[QLocale](qlocale.html)實例。
默認情況下,任何選項都為標準的語言環境設置。
這個函數中引入了Qt 4.2中。
**See also** [setNumberOptions](qlocale.html#setNumberOptions)( ) 。
```
QChar QLocale.percent (self)
```
返回此語言環境的百分比字符。
這個函數是Qt 4.1中引入。
```
QString QLocale.pmText (self)
```
返回“PM ”后綴使用12小時制的慣例指定的時間的本地化名稱。
此功能被引入Qt的4.5 。
**See also** [amText](qlocale.html#amText)( ) 。
```
QChar QLocale.positiveSign (self)
```
返回此語言環境的積極跡象字符。
此功能被引入Qt的4.5 。
```
QString QLocale.quoteString (self, QString?str, QuotationStyle?style?=?QLocale.StandardQuotation)
```
Returns _str_根據當前的語言環境中使用給定的報價單報價_style_。
此功能被引入Qt的4.8 。
```
Script QLocale.script (self)
```
[
返回此語言環境的腳本。
此功能被引入Qt的4.8 。
](qlocale.html#Script-enum)
[**See also**](qlocale.html#Script-enum) [language](qlocale.html#language)( )[country](qlocale.html#country)( )[languageToString](qlocale.html#languageToString)( )[scriptToString](qlocale.html#scriptToString)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QString QLocale.scriptToString (Script?script)
```
返回[QString](qstring.html)含有的名_script_。
此功能被引入Qt的4.8 。
**See also** [languageToString](qlocale.html#languageToString)( )[countryToString](qlocale.html#countryToString)( )[script](qlocale.html#script)()和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
QLocale.setDefault (QLocale?locale)
```
設置全局默認語言環境_locale_。這些值被用于當[QLocale](qlocale.html)對象被構造帶任何參數。如果這個功能不叫,系統的區域設置。
**Warning:**在多線程應用程序中,默認區域設置應設置在應用程序啟動時,在創建任何非GUI線程之前。
**Warning:**此功能不[reentrant](index.htm#reentrant)。
**See also** [system](qlocale.html#system)()和[c](qlocale.html#c)( ) 。
```
QLocale.setNumberOptions (self, NumberOptions?options)
```
設置_options_有關數字轉換為這個[QLocale](qlocale.html)實例。
這個函數中引入了Qt 4.2中。
**See also** [numberOptions](qlocale.html#numberOptions)( ) 。
```
QString QLocale.standaloneDayName (self, int, FormatType?format?=?QLocale.LongFormat)
```
返回的本地化名稱_day_(其中, 1表示星期一, 2代表星期二等等),它作為一個獨立的文本中,在由指定的格式_type_。
如果區域設置信息不指定獨立日名稱則返回值是一樣的[dayName](qlocale.html#dayName)( ) 。
此功能被引入Qt的4.5 。
**See also** [dayName](qlocale.html#dayName)()和[standaloneMonthName](qlocale.html#standaloneMonthName)( ) 。
```
QString QLocale.standaloneMonthName (self, int, FormatType?format?=?QLocale.LongFormat)
```
返回的本地化名稱_month_被用作一個獨立的文本中,在由指定的格式_type_。
如果區域設置信息不指定獨立的月份名稱,然后返回值是一樣的[monthName](qlocale.html#monthName)( ) 。
此功能被引入Qt的4.5 。
**See also** [monthName](qlocale.html#monthName)()和[standaloneDayName](qlocale.html#standaloneDayName)( ) 。
```
QLocale QLocale.system ()
```
[](qlocale.html)
[返回](qlocale.html)[QLocale](qlocale.html)對象初始化系統區域設置。
在Windows和Mac上,這個區域將使用十進制/分組在系統配置面板中指定的字符和日期/時間格式。
**See also** [c](qlocale.html#c)( ) 。
```
Qt.LayoutDirection QLocale.textDirection (self)
```
[
返回該語言的文字方向。
此功能被引入Qt的4.7 。
```
QString QLocale.timeFormat (self, FormatType?format?=?QLocale.LongFormat)
```
返回用于當前語言環境的時間格式。
](qt.html#LayoutDirection-enum)
[If _format_ is](qt.html#LayoutDirection-enum) [LongFormat](qlocale.html#FormatType-enum)該格式將是一個漫長的版本。否則,它采用了較短的版本。
這個函數是Qt 4.1中引入。
**See also** [QTime.toString](qtime.html#toString)()和[QTime.fromString](qtime.html#fromString)( ) 。
```
QString QLocale.toCurrencyString (self, int?value, QString?symbol?=?QString())
```
返回一個本地化的字符串表示形式_value_作為貨幣。如果_symbol_是只要它是用來代替默認貨幣符號。
此功能被引入Qt的4.8 。
**See also** [currencySymbol](qlocale.html#currencySymbol)( ) 。
```
QString QLocale.toCurrencyString (self, float?value, QString?symbol?=?QString())
```
這是一個重載函數。
此功能被引入Qt的4.8 。
```
QString QLocale.toCurrencyString (self, int?value, QString?symbol?=?QString())
```
這是一個重載函數。
此功能被引入Qt的4.8 。
```
QString QLocale.toCurrencyString (self, int?value, QString?symbol?=?QString())
```
這是一個重載函數。
此功能被引入Qt的4.8 。
```
QDate QLocale.toDate (self, QString?string, FormatType?format?=?QLocale.LongFormat)
```
[](qdate.html)
[解析中所給出的日期字符串_string_和返回日期。日期字符串的格式是根據所選擇的_format_參數(見](qdate.html)[dateFormat](qlocale.html#dateFormat)())。
如果日期無法解析,返回無效日期。
此功能被引入Qt的4.4 。
**See also** [dateFormat](qlocale.html#dateFormat)( )[toTime](qlocale.html#toTime)( )[toDateTime](qlocale.html#toDateTime)()和[QDate.fromString](qdate.html#fromString)( ) 。
```
QDate QLocale.toDate (self, QString?string, QString?format)
```
[](qdate.html)
[解析中所給出的日期字符串_string_和返回日期。看](qdate.html)[QDate.fromString](qdate.html#fromString)()就可以使用此功能使用的表達式的信息。
該函數查找的月份名稱和星期幾的當前語言環境的名稱。
如果日期無法解析,返回無效日期。
此功能被引入Qt的4.4 。
**See also** [dateFormat](qlocale.html#dateFormat)( )[toTime](qlocale.html#toTime)( )[toDateTime](qlocale.html#toDateTime)()和[QDate.fromString](qdate.html#fromString)( ) 。
```
QDateTime QLocale.toDateTime (self, QString?string, FormatType?format?=?QLocale.LongFormat)
```
[](qdatetime.html)
[解析中給出的日期/時間字符串_string_并返回的時間。的日期/時間字符串的格式是根據所選擇的_format_參數(見](qdatetime.html)[dateTimeFormat](qlocale.html#dateTimeFormat)())。
如果字符串不能解析,則返回一個無效的[QDateTime](qdatetime.html)。
此功能被引入Qt的4.4 。
**See also** [dateTimeFormat](qlocale.html#dateTimeFormat)( )[toTime](qlocale.html#toTime)( )[toDate](qlocale.html#toDate)()和[QDateTime.fromString](qdatetime.html#fromString)( ) 。
```
QDateTime QLocale.toDateTime (self, QString?string, QString?format)
```
[](qdatetime.html)
[解析中給出的日期/時間字符串_string_并返回的時間。看](qdatetime.html)[QDateTime.fromString](qdatetime.html#fromString)()就可以使用此功能使用的表達式的信息。
**Note:**所使用的月和日的名稱必須在用戶的本地語言來給出。
如果字符串不能解析,則返回一個無效的[QDateTime](qdatetime.html)。
此功能被引入Qt的4.4 。
**See also** [dateTimeFormat](qlocale.html#dateTimeFormat)( )[toTime](qlocale.html#toTime)( )[toDate](qlocale.html#toDate)()和[QDateTime.fromString](qdatetime.html#fromString)( ) 。
```
(float, bool?ok) QLocale.toDouble (self, QString?s)
```
返回由本地化的字符串表示的double_s_,或0.0 ,如果轉換失敗。
If _ok_不為0 ,通過設置*確定為False,并成功通過設置*確定真正的故障報告。
不像[QString.toDouble](qstring.html#toDouble)( ) ,這個函數不回落到了“ C”語言環境,如果該字符串不能在此區域進行解釋。
```
bool ok;
double d;
[QLocale](qlocale.html) c([QLocale](qlocale.html).C);
d = c.toDouble( "1234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1,234.56", &ok ); // ok == true, d == 1234.56
d = c.toDouble( "1234,56", &ok ); // ok == false
[QLocale](qlocale.html) german([QLocale](qlocale.html).German);
d = german.toDouble( "1234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1.234,56", &ok ); // ok == true, d == 1234.56
d = german.toDouble( "1234.56", &ok ); // ok == false
d = german.toDouble( "1.234", &ok ); // ok == true, d == 1234.0
```
請注意,最后轉換返回1234.0 ,因為'。'在德語語言環境的數千組分隔符。
此函數忽略前導和尾隨空白。
**See also** [toFloat](qlocale.html#toFloat)( )[toInt](qlocale.html#toInt)()和[toString](qlocale.html#toString)( ) 。
```
(float, bool?ok) QLocale.toFloat (self, QString?s)
```
返回由本地化的字符串表示的float_s_,或0.0 ,如果轉換失敗。
If _ok_不為0 ,通過設置*確定為False,并成功通過設置*確定真正的故障報告。
此函數忽略前導和尾隨空白。
**See also** [toDouble](qlocale.html#toDouble)( )[toInt](qlocale.html#toInt)()和[toString](qlocale.html#toString)( ) 。
```
(int, bool?ok) QLocale.toInt (self, QString?s, int?base?=?0)
```
返回由本地化的字符串表示的整數_s_使用基_base_。如果_base_為0的基極被自動使用以下規則確定:如果字符串開頭的“0x ” ,它被假定為十六進制的,如果它以“ 0 ”時,它被假定為八進制,否則它被假定為十進制。
如果轉換失敗則函數返回0 。
If _ok_不為0 ,故障報告通過設置*確定為False ,并成功通過設置*確定為True。
此函數忽略前導和尾隨空白。
**See also** [toUInt](qlocale.html#toUInt)()和[toString](qlocale.html#toString)( ) 。
```
(int, bool?ok) QLocale.toLongLong (self, QString?s, int?base?=?0)
```
返回長long int類型的本地化字符串表示_s_使用基_base_。如果_base_為0的基極被自動使用以下規則確定:如果字符串開頭的“0x ” ,它被假定為十六進制的,如果它以“ 0 ”時,它被假定為八進制,否則它被假定為十進制。
如果轉換失敗則函數返回0 。
If _ok_不為0 ,故障報告通過設置*確定為False ,并成功通過設置*確定為True。
此函數忽略前導和尾隨空白。
**See also** [toInt](qlocale.html#toInt)( )[toULongLong](qlocale.html#toULongLong)( )[toDouble](qlocale.html#toDouble)()和[toString](qlocale.html#toString)( ) 。
```
QString QLocale.toLower (self, QString?str)
```
返回一個小寫副本_str_。
此功能被引入Qt的4.8 。
```
(int, bool?ok) QLocale.toShort (self, QString?s, int?base?=?0)
```
返回由本地化的字符串表示的短整型_s_使用基_base_。如果_base_為0的基極被自動使用以下規則確定:如果字符串開頭的“0x ” ,它被假定為十六進制的,如果它以“ 0 ”時,它被假定為八進制,否則它被假定為十進制。
如果轉換失敗則函數返回0 。
If _ok_不為0 ,故障報告通過設置*確定為False ,并成功通過設置*確定為True。
此函數忽略前導和尾隨空白。
**See also** [toUShort](qlocale.html#toUShort)()和[toString](qlocale.html#toString)( ) 。
```
QString QLocale.toString (self, int?i)
```
返回一個本地化的字符串表示形式_i_。
**See also** [toLongLong](qlocale.html#toLongLong)( ) 。
```
QString QLocale.toString (self, float?i, str?format?=?'g', int?precision?=?6)
```
返回給定一個本地化的字符串表示形式_date_在指定的_format_。如果_format_是一個空字符串,則返回一個空字符串。
```
QString QLocale.toString (self, int?i)
```
返回給定一個本地化的字符串表示形式_date_根據指定的_format_。
```
QString QLocale.toString (self, int?i)
```
返回給定一個本地化的字符串表示形式_time_根據指定的_format_。如果_format_是一個空字符串,則返回一個空字符串。
```
QString QLocale.toString (self, QDateTime?dateTime, QString?format)
```
返回給定一個本地化的字符串表示形式_time_在指定的_format_。
```
QString QLocale.toString (self, QDateTime?dateTime, FormatType?format?=?QLocale.LongFormat)
```
返回給定一個本地化的字符串表示形式_dateTime_根據指定的_format_。
此功能被引入Qt的4.4 。
```
QString QLocale.toString (self, QDate?date, QString?formatStr)
```
返回給定一個本地化的字符串表示形式_dateTime_根據指定的_format_。如果_format_是一個空字符串,則返回一個空字符串。
此功能被引入Qt的4.4 。
```
QString QLocale.toString (self, QDate?date, FormatType?format?=?QLocale.LongFormat)
```
這是一個重載函數。
**See also** [toULongLong](qlocale.html#toULongLong)( ) 。
```
QString QLocale.toString (self, QTime?time, QString?formatStr)
```
這是一個重載函數。
_f_和_prec_具有相同涵義與QString.number (雙,字符型,整型) 。
**See also** [toDouble](qlocale.html#toDouble)( ) 。
```
QString QLocale.toString (self, QTime?time, FormatType?format?=?QLocale.LongFormat)
```
這是一個重載函數。
**See also** [toShort](qlocale.html#toShort)( ) 。
```
QTime QLocale.toTime (self, QString?string, FormatType?format?=?QLocale.LongFormat)
```
[](qtime.html)
[解析中給出的時間字符串_string_并返回的時間。時間字符串的格式是根據所選擇的_format_參數(見](qtime.html)[timeFormat](qlocale.html#timeFormat)())。
如果時間無法解析,則返回一個無效的時間。
此功能被引入Qt的4.4 。
**See also** [timeFormat](qlocale.html#timeFormat)( )[toDate](qlocale.html#toDate)( )[toDateTime](qlocale.html#toDateTime)()和[QTime.fromString](qtime.html#fromString)( ) 。
```
QTime QLocale.toTime (self, QString?string, QString?format)
```
[](qtime.html)
[解析中給出的時間字符串_string_并返回的時間。看](qtime.html)[QTime.fromString](qtime.html#fromString)( )對于什么是有效的格式字符串的信息。
如果時間無法解析,則返回一個無效的時間。
此功能被引入Qt的4.4 。
**See also** [timeFormat](qlocale.html#timeFormat)( )[toDate](qlocale.html#toDate)( )[toDateTime](qlocale.html#toDateTime)()和[QTime.fromString](qtime.html#fromString)( ) 。
```
(int, bool?ok) QLocale.toUInt (self, QString?s, int?base?=?0)
```
返回由本地化的字符串表示的無符號整型_s_使用基_base_。如果_base_為0的基極被自動使用以下規則確定:如果字符串開頭的“0x ” ,它被假定為十六進制的,如果它以“ 0 ”時,它被假定為八進制,否則它被假定為十進制。
如果轉換失敗則函數返回0 。
If _ok_不為0 ,故障報告通過設置*確定為False ,并成功通過設置*確定為True。
此函數忽略前導和尾隨空白。
**See also** [toInt](qlocale.html#toInt)()和[toString](qlocale.html#toString)( ) 。
```
(int, bool?ok) QLocale.toULongLong (self, QString?s, int?base?=?0)
```
返回無符號長整型長的本地化字符串表示_s_使用基_base_。如果_base_為0的基極被自動使用以下規則確定:如果字符串開頭的“0x ” ,它被假定為十六進制的,如果它以“ 0 ”時,它被假定為八進制,否則它被假定為十進制。
如果轉換失敗則函數返回0 。
If _ok_不為0 ,故障報告通過設置*確定為False ,并成功通過設置*確定為True。
此函數忽略前導和尾隨空白。
**See also** [toLongLong](qlocale.html#toLongLong)( )[toInt](qlocale.html#toInt)( )[toDouble](qlocale.html#toDouble)()和[toString](qlocale.html#toString)( ) 。
```
QString QLocale.toUpper (self, QString?str)
```
返回的大寫副本_str_。
此功能被引入Qt的4.8 。
```
(int, bool?ok) QLocale.toUShort (self, QString?s, int?base?=?0)
```
返回由本地化的字符串表示的無符號短整型_s_使用基_base_。如果_base_為0的基極被自動使用以下規則確定:如果字符串開頭的“0x ” ,它被假定為十六進制的,如果它以“ 0 ”時,它被假定為八進制,否則它被假定為十進制。
如果轉換失敗則函數返回0 。
If _ok_不為0 ,故障報告通過設置*確定為False ,并成功通過設置*確定為True。
此函數忽略前導和尾隨空白。
**See also** [toShort](qlocale.html#toShort)()和[toString](qlocale.html#toString)( ) 。
```
QStringList QLocale.uiLanguages (self)
```
返回地區名稱的翻譯目的優先次序的排序列表。
返回值表示用戶希望看到的用戶界面翻譯英寸的地區名
最喜歡你不需要直接使用這個功能,但只是通過[QLocale](qlocale.html)反對[QTranslator.load](qtranslator.html#load)()函數。
該列表中的第一個項目是最首選之一。
此功能被引入Qt的4.8 。
**See also** [QTranslator](qtranslator.html)和[bcp47Name](qlocale.html#bcp47Name)( ) 。
```
list-of-Qt.DayOfWeek QLocale.weekdays (self)
```
返回的天那是根據當前的locale認為平日列表。
此功能被引入Qt的4.8 。
```
QChar QLocale.zeroDigit (self)
```
返回此語言環境的數字零字符。
這個函數是Qt 4.1中引入。
```
bool QLocale.__eq__ (self, QLocale?other)
```
```
bool QLocale.__ne__ (self, QLocale?other)
```
- PyQt4 中文文檔
- PyQt Class Reference
- QAbstractAnimation Class Reference
- QAbstractButton Class Reference
- QAbstractEventDispatcher Class Reference
- QAbstractExtensionFactory Class Reference
- QAbstractExtensionManager Class Reference
- QAbstractFileEngine Class Reference
- QAbstractFileEngineHandler Class Reference
- QAbstractFileEngineIterator Class Reference
- QAbstractFormBuilder Class Reference
- QAbstractGraphicsShapeItem Class Reference
- QAbstractItemDelegate Class Reference
- QAbstractItemModel Class Reference
- QAbstractItemView Class Reference
- QAbstractListModel Class Reference
- QAbstractMessageHandler Class Reference
- QAbstractNetworkCache Class Reference
- QAbstractPrintDialog Class Reference
- QAbstractProxyModel Class Reference
- QAbstractScrollArea Class Reference
- QAbstractSlider Class Reference
- QAbstractSocket Class Reference
- QAbstractSpinBox Class Reference
- QAbstractState Class Reference
- QAbstractTableModel Class Reference
- QAbstractTextDocumentLayout Class Reference
- QAbstractTransition Class Reference
- QAbstractUriResolver Class Reference
- QAbstractVideoBuffer Class Reference
- QAbstractVideoSurface Class Reference
- QAbstractXmlNodeModel Class Reference
- QAbstractXmlReceiver Class Reference
- QAction Class Reference
- QActionEvent Class Reference
- QActionGroup Class Reference
- QAnimationGroup Class Reference
- QApplication Class Reference
- QAssistantClient Class Reference
- QAudio Class Reference
- QAudioDeviceInfo Class Reference
- QAudioFormat Class Reference
- QAudioInput Class Reference
- QAudioOutput Class Reference
- QAuthenticator Class Reference
- QBasicTimer Class Reference
- QBitArray Class Reference
- QBitmap Class Reference
- QBoxLayout Class Reference
- QBrush Class Reference
- QBuffer Class Reference
- QButtonGroup Class Reference
- QByteArray Class Reference
- QByteArrayMatcher Class Reference
- QCalendarWidget Class Reference
- QChar Class Reference
- QCheckBox Class Reference
- QChildEvent Class Reference
- QClipboard Class Reference
- QCloseEvent Class Reference
- QColor Class Reference
- QColorDialog Class Reference
- QColumnView Class Reference
- QComboBox Class Reference
- QCommandLinkButton Class Reference
- QCommonStyle Class Reference
- QCompleter Class Reference
- QConicalGradient Class Reference
- QContextMenuEvent Class Reference
- QCoreApplication Class Reference
- QCryptographicHash Class Reference
- QCursor Class Reference
- QDataStream Class Reference
- QDataWidgetMapper Class Reference
- QDate Class Reference
- QDateEdit Class Reference
- QDateTime Class Reference
- QDateTimeEdit Class Reference
- QDBus Class Reference
- QDBusAbstractAdaptor Class Reference
- QDBusAbstractInterface Class Reference
- QDBusArgument Class Reference
- QDBusConnection Class Reference
- QDBusConnectionInterface Class Reference
- QDBusError Class Reference
- QDBusInterface Class Reference
- QDBusMessage Class Reference
- QDBusObjectPath Class Reference
- QDBusPendingCall Class Reference
- QDBusPendingCallWatcher Class Reference
- QDBusPendingReply Class Reference
- QDBusReply Class Reference
- QDBusServiceWatcher Class Reference
- QDBusSignature Class Reference
- QDBusUnixFileDescriptor Class Reference
- QDBusVariant Class Reference
- QDeclarativeComponent Class Reference
- QDeclarativeContext Class Reference
- QDeclarativeEngine Class Reference
- QDeclarativeError Class Reference
- QDeclarativeExpression Class Reference
- QDeclarativeExtensionPlugin Class Reference
- QDeclarativeImageProvider Class Reference
- QDeclarativeItem Class Reference
- QDeclarativeListReference Class Reference
- QDeclarativeNetworkAccessManagerFactory Class Reference
- QDeclarativeParserStatus Class Reference
- QDeclarativeProperty Class Reference
- QDeclarativePropertyMap Class Reference
- QDeclarativePropertyValueSource Class Reference
- QDeclarativeScriptString Class Reference
- QDeclarativeView Class Reference
- QDesignerActionEditorInterface Class Reference
- QDesignerContainerExtension Class Reference
- QDesignerCustomWidgetCollectionInterface Class Reference
- QDesignerCustomWidgetInterface Class Reference
- QDesignerFormEditorInterface Class Reference
- QDesignerFormWindowCursorInterface Class Reference
- QDesignerFormWindowInterface Class Reference
- QDesignerFormWindowManagerInterface Class Reference
- QDesignerMemberSheetExtension Class Reference
- QDesignerObjectInspectorInterface Class Reference
- QDesignerPropertyEditorInterface Class Reference
- QDesignerPropertySheetExtension Class Reference
- QDesignerTaskMenuExtension Class Reference
- QDesignerWidgetBoxInterface Class Reference
- QDesktopServices Class Reference
- QDesktopWidget Class Reference
- QDial Class Reference
- QDialog Class Reference
- QDialogButtonBox Class Reference
- QDir Class Reference
- QDirIterator Class Reference
- QDirModel Class Reference
- QDockWidget Class Reference
- QDomAttr Class Reference
- QDomCDATASection Class Reference
- QDomCharacterData Class Reference
- QDomComment Class Reference
- QDomDocument Class Reference
- QDomDocumentFragment Class Reference
- QDomDocumentType Class Reference
- QDomElement Class Reference
- QDomEntity Class Reference
- QDomEntityReference Class Reference
- QDomImplementation Class Reference
- QDomNamedNodeMap Class Reference
- QDomNode Class Reference
- QDomNodeList Class Reference
- QDomNotation Class Reference
- QDomProcessingInstruction Class Reference
- QDomText Class Reference
- QDoubleSpinBox Class Reference
- QDoubleValidator Class Reference
- QDrag Class Reference
- QDragEnterEvent Class Reference
- QDragLeaveEvent Class Reference
- QDragMoveEvent Class Reference
- QDropEvent Class Reference
- QDynamicPropertyChangeEvent Class Reference
- QEasingCurve Class Reference
- QElapsedTimer Class Reference
- QErrorMessage Class Reference
- QEvent Class Reference
- QEventLoop Class Reference
- QEventTransition Class Reference
- QExtensionFactory Class Reference
- QExtensionManager Class Reference
- QFile Class Reference
- QFileDialog Class Reference
- QFileIconProvider Class Reference
- QFileInfo Class Reference
- QFileOpenEvent Class Reference
- QFileSystemModel Class Reference
- QFileSystemWatcher Class Reference
- QFinalState Class Reference
- QFocusEvent Class Reference
- QFocusFrame Class Reference
- QFont Class Reference
- QFontComboBox Class Reference
- QFontDatabase Class Reference
- QFontDialog Class Reference
- QFontInfo Class Reference
- QFontMetrics Class Reference
- QFontMetricsF Class Reference
- QFormBuilder Class Reference
- QFormLayout Class Reference
- QFrame Class Reference
- QFSFileEngine Class Reference
- QFtp Class Reference
- QGenericArgument Class Reference
- QGenericReturnArgument Class Reference
- QGesture Class Reference
- QGestureEvent Class Reference
- QGestureRecognizer Class Reference
- QGL Class Reference
- QGLBuffer Class Reference
- QGLColormap Class Reference
- QGLContext Class Reference
- QGLFormat Class Reference
- QGLFramebufferObject Class Reference
- QGLFramebufferObjectFormat Class Reference
- QGLPixelBuffer Class Reference
- QGLShader Class Reference
- QGLShaderProgram Class Reference
- QGLWidget Class Reference
- QGlyphRun Class Reference
- QGradient Class Reference
- QGraphicsAnchor Class Reference
- QGraphicsAnchorLayout Class Reference
- QGraphicsBlurEffect Class Reference
- QGraphicsColorizeEffect Class Reference
- QGraphicsDropShadowEffect Class Reference
- QGraphicsEffect Class Reference
- QGraphicsEllipseItem Class Reference
- QGraphicsGridLayout Class Reference
- QGraphicsItem Class Reference
- QGraphicsItemAnimation Class Reference
- QGraphicsItemGroup Class Reference
- QGraphicsLayout Class Reference
- QGraphicsLayoutItem Class Reference
- QGraphicsLinearLayout Class Reference
- QGraphicsLineItem Class Reference
- QGraphicsObject Class Reference
- QGraphicsOpacityEffect Class Reference
- QGraphicsPathItem Class Reference
- QGraphicsPixmapItem Class Reference
- QGraphicsPolygonItem Class Reference
- QGraphicsProxyWidget Class Reference
- QGraphicsRectItem Class Reference
- QGraphicsRotation Class Reference
- QGraphicsScale Class Reference
- QGraphicsScene Class Reference
- QGraphicsSceneContextMenuEvent Class Reference
- QGraphicsSceneDragDropEvent Class Reference
- QGraphicsSceneEvent Class Reference
- QGraphicsSceneHelpEvent Class Reference
- QGraphicsSceneHoverEvent Class Reference
- QGraphicsSceneMouseEvent Class Reference
- QGraphicsSceneMoveEvent Class Reference
- QGraphicsSceneResizeEvent Class Reference
- QGraphicsSceneWheelEvent Class Reference
- QGraphicsSimpleTextItem Class Reference
- QGraphicsSvgItem Class Reference
- QGraphicsTextItem Class Reference
- QGraphicsTransform Class Reference
- QGraphicsView Class Reference
- QGraphicsWebView Class Reference
- QGraphicsWidget Class Reference
- QGridLayout Class Reference
- QGroupBox Class Reference
- QHBoxLayout Class Reference
- QHeaderView Class Reference
- QHelpContentItem Class Reference
- QHelpContentModel Class Reference
- QHelpContentWidget Class Reference
- QHelpEngine Class Reference
- QHelpEngineCore Class Reference
- QHelpEvent Class Reference
- QHelpIndexModel Class Reference
- QHelpIndexWidget Class Reference
- QHelpSearchEngine Class Reference
- QHelpSearchQuery Class Reference
- QHelpSearchQueryWidget Class Reference
- QHelpSearchResultWidget Class Reference
- QHideEvent Class Reference
- QHistoryState Class Reference
- QHostAddress Class Reference
- QHostInfo Class Reference
- QHoverEvent Class Reference
- QHttp Class Reference
- QHttpHeader Class Reference
- QHttpMultiPart Class Reference
- QHttpPart Class Reference
- QHttpRequestHeader Class Reference
- QHttpResponseHeader Class Reference
- QIcon Class Reference
- QIconDragEvent Class Reference
- QIconEngine Class Reference
- QIconEngineV2 Class Reference
- QIdentityProxyModel Class Reference
- QImage Class Reference
- QImageIOHandler Class Reference
- QImageReader Class Reference
- QImageWriter Class Reference
- QInputContext Class Reference
- QInputContextFactory Class Reference
- QInputDialog Class Reference
- QInputEvent Class Reference
- QInputMethodEvent Class Reference
- QIntValidator Class Reference
- QIODevice Class Reference
- QItemDelegate Class Reference
- QItemEditorCreatorBase Class Reference
- QItemEditorFactory Class Reference
- QItemSelection Class Reference
- QItemSelectionModel Class Reference
- QItemSelectionRange Class Reference
- QKeyEvent Class Reference
- QKeyEventTransition Class Reference
- QKeySequence Class Reference
- QLabel Class Reference
- QLatin1Char Class Reference
- QLatin1String Class Reference
- QLayout Class Reference
- QLayoutItem Class Reference
- QLCDNumber Class Reference
- QLibrary Class Reference
- QLibraryInfo Class Reference
- QLine Class Reference
- QLinearGradient Class Reference
- QLineEdit Class Reference
- QLineF Class Reference
- QListView Class Reference
- QListWidget Class Reference
- QListWidgetItem Class Reference
- QLocale Class Reference
- QLocalServer Class Reference
- QLocalSocket Class Reference
- QMainWindow Class Reference
- QMargins Class Reference
- QMatrix Class Reference
- QMatrix2x2 Class Reference
- QMatrix2x3 Class Reference
- QMatrix2x4 Class Reference
- QMatrix3x2 Class Reference
- QMatrix3x3 Class Reference
- QMatrix3x4 Class Reference
- QMatrix4x2 Class Reference
- QMatrix4x3 Class Reference
- QMatrix4x4 Class Reference
- QMdiArea Class Reference
- QMdiSubWindow Class Reference
- QMenu Class Reference
- QMenuBar Class Reference
- QMessageBox Class Reference
- QMetaClassInfo Class Reference
- QMetaEnum Class Reference
- QMetaMethod Class Reference
- QMetaObject Class Reference
- QMetaProperty Class Reference
- QMetaType Class Reference
- QMimeData Class Reference
- QMimeSource Class Reference
- QModelIndex Class Reference
- QMouseEvent Class Reference
- QMouseEventTransition Class Reference
- QMoveEvent Class Reference
- QMovie Class Reference
- QMutex Class Reference
- QMutexLocker Class Reference
- QNetworkAccessManager Class Reference
- QNetworkAddressEntry Class Reference
- QNetworkCacheMetaData Class Reference
- QNetworkConfiguration Class Reference
- QNetworkConfigurationManager Class Reference
- QNetworkCookie Class Reference
- QNetworkCookieJar Class Reference
- QNetworkDiskCache Class Reference
- QNetworkInterface Class Reference
- QNetworkProxy Class Reference
- QNetworkProxyFactory Class Reference
- QNetworkProxyQuery Class Reference
- QNetworkReply Class Reference
- QNetworkRequest Class Reference
- QNetworkSession Class Reference
- QObject Class Reference
- QObjectCleanupHandler Class Reference
- QPageSetupDialog Class Reference
- QPaintDevice Class Reference
- QPaintEngine Class Reference
- QPaintEngineState Class Reference
- QPainter Class Reference
- QPainterPath Class Reference
- QPainterPathStroker Class Reference
- QPaintEvent Class Reference
- QPalette Class Reference
- QPanGesture Class Reference
- QParallelAnimationGroup Class Reference
- QPauseAnimation Class Reference
- QPen Class Reference
- QPersistentModelIndex Class Reference
- QPicture Class Reference
- QPictureIO Class Reference
- QPinchGesture Class Reference
- QPixmap Class Reference
- QPixmapCache Class Reference
- QPlainTextDocumentLayout Class Reference
- QPlainTextEdit Class Reference
- QPluginLoader Class Reference
- QPoint Class Reference
- QPointF Class Reference
- QPolygon Class Reference
- QPolygonF Class Reference
- QPrintDialog Class Reference
- QPrintEngine Class Reference
- QPrinter Class Reference
- QPrinterInfo Class Reference
- QPrintPreviewDialog Class Reference
- QPrintPreviewWidget Class Reference
- QProcess Class Reference
- QProcessEnvironment Class Reference
- QProgressBar Class Reference
- QProgressDialog Class Reference
- QPropertyAnimation Class Reference
- QProxyModel Class Reference
- QPushButton Class Reference
- QPyDeclarativePropertyValueSource Class Reference
- QPyDesignerContainerExtension Class Reference
- QPyDesignerCustomWidgetCollectionPlugin Class Reference
- QPyDesignerCustomWidgetPlugin Class Reference
- QPyDesignerMemberSheetExtension Class Reference
- QPyDesignerPropertySheetExtension Class Reference
- QPyDesignerTaskMenuExtension Class Reference
- QPyNullVariant Class Reference
- QPyTextObject Class Reference
- QQuaternion Class Reference
- QRadialGradient Class Reference
- QRadioButton Class Reference
- QRawFont Class Reference
- QReadLocker Class Reference
- QReadWriteLock Class Reference
- QRect Class Reference
- QRectF Class Reference
- QRegExp Class Reference
- QRegExpValidator Class Reference
- QRegion Class Reference
- QResizeEvent Class Reference
- QResource Class Reference
- QRubberBand Class Reference
- QRunnable Class Reference
- QScriptClass Class Reference
- QScriptClassPropertyIterator Class Reference
- QScriptContext Class Reference
- QScriptContextInfo Class Reference
- QScriptEngine Class Reference
- QScriptEngineAgent Class Reference
- QScriptEngineDebugger Class Reference
- QScriptString Class Reference
- QScriptSyntaxCheckResult Class Reference
- QScriptValue Class Reference
- QScriptValueIterator Class Reference
- QScrollArea Class Reference
- QScrollBar Class Reference
- QSemaphore Class Reference
- QSequentialAnimationGroup Class Reference
- QSessionManager Class Reference
- QSettings Class Reference
- QSharedMemory Class Reference
- QShortcut Class Reference
- QShortcutEvent Class Reference
- QShowEvent Class Reference
- QSignalMapper Class Reference
- QSignalTransition Class Reference
- QSimpleXmlNodeModel Class Reference
- QSize Class Reference
- QSizeF Class Reference
- QSizeGrip Class Reference
- QSizePolicy Class Reference
- QSlider Class Reference
- QSocketNotifier Class Reference
- QSortFilterProxyModel Class Reference
- QSound Class Reference
- QSourceLocation Class Reference
- QSpacerItem Class Reference
- QSpinBox Class Reference
- QSplashScreen Class Reference
- QSplitter Class Reference
- QSplitterHandle Class Reference
- QSql Class Reference
- QSqlDatabase Class Reference
- QSqlDriver Class Reference
- QSqlDriverCreatorBase Class Reference
- QSqlError Class Reference
- QSqlField Class Reference
- QSqlIndex Class Reference
- QSqlQuery Class Reference
- QSqlQueryModel Class Reference
- QSqlRecord Class Reference
- QSqlRelation Class Reference
- QSqlRelationalDelegate Class Reference
- QSqlRelationalTableModel Class Reference
- QSqlResult Class Reference
- QSqlTableModel Class Reference
- Qt4.7文檔翻譯:Qt樣式單參考,Qt Style Sheets Reference
- QSsl Class Reference
- QSslCertificate Class Reference
- QSslCipher Class Reference
- QSslConfiguration Class Reference
- QSslError Class Reference
- QSslKey Class Reference
- QSslSocket Class Reference
- QStackedLayout Class Reference
- QStackedWidget Class Reference
- QStandardItem Class Reference
- QStandardItemModel Class Reference
- QState Class Reference
- QStateMachine Class Reference
- QStaticText Class Reference
- QStatusBar Class Reference
- QStatusTipEvent Class Reference
- QString Class Reference
- QStringList Class Reference
- QStringListModel Class Reference
- QStringMatcher Class Reference
- QStringRef Class Reference
- QStyle Class Reference
- QStyledItemDelegate Class Reference
- QStyleFactory Class Reference
- QStyleHintReturn Class Reference
- QStyleHintReturnMask Class Reference
- QStyleHintReturnVariant Class Reference
- QStyleOption Class Reference
- QStyleOptionButton Class Reference
- QStyleOptionComboBox Class Reference
- QStyleOptionComplex Class Reference
- QStyleOptionDockWidget Class Reference
- QStyleOptionDockWidgetV2 Class Reference
- QStyleOptionFocusRect Class Reference
- QStyleOptionFrame Class Reference
- QStyleOptionFrameV2 Class Reference
- QStyleOptionFrameV3 Class Reference
- QStyleOptionGraphicsItem Class Reference
- QStyleOptionGroupBox Class Reference
- QStyleOptionHeader Class Reference
- QStyleOptionMenuItem Class Reference
- QStyleOptionProgressBar Class Reference
- QStyleOptionProgressBarV2 Class Reference
- QStyleOptionRubberBand Class Reference
- QStyleOptionSizeGrip Class Reference
- QStyleOptionSlider Class Reference
- QStyleOptionSpinBox Class Reference
- QStyleOptionTab Class Reference
- QStyleOptionTabBarBase Class Reference
- QStyleOptionTabBarBaseV2 Class Reference
- QStyleOptionTabV2 Class Reference
- QStyleOptionTabV3 Class Reference
- QStyleOptionTabWidgetFrame Class Reference
- QStyleOptionTabWidgetFrameV2 Class Reference
- QStyleOptionTitleBar Class Reference
- QStyleOptionToolBar Class Reference
- QStyleOptionToolBox Class Reference
- QStyleOptionToolBoxV2 Class Reference
- QStyleOptionToolButton Class Reference
- QStyleOptionViewItem Class Reference
- QStyleOptionViewItemV2 Class Reference
- QStyleOptionViewItemV3 Class Reference
- QStyleOptionViewItemV4 Class Reference
- QStylePainter Class Reference
- QSvgGenerator Class Reference
- QSvgRenderer Class Reference
- QSvgWidget Class Reference
- QSwipeGesture Class Reference
- QSyntaxHighlighter Class Reference
- QSysInfo Class Reference
- QSystemLocale Class Reference
- QSystemSemaphore Class Reference
- QSystemTrayIcon Class Reference
- Qt Class Reference
- QTabBar Class Reference
- QTabletEvent Class Reference
- QTableView Class Reference
- QTableWidget Class Reference
- QTableWidgetItem Class Reference
- QTableWidgetSelectionRange Class Reference
- QTabWidget Class Reference
- QTapAndHoldGesture Class Reference
- QTapGesture Class Reference
- QTcpServer Class Reference
- QTcpSocket Class Reference
- QTemporaryFile Class Reference
- QTest Class Reference
- QTextBlock Class Reference
- QTextBlockFormat Class Reference
- QTextBlockGroup Class Reference
- QTextBlockUserData Class Reference
- QTextBoundaryFinder Class Reference
- QTextBrowser Class Reference
- QTextCharFormat Class Reference
- QTextCodec Class Reference
- QTextCursor Class Reference
- QTextDecoder Class Reference
- QTextDocument Class Reference
- QTextDocumentFragment Class Reference
- QTextDocumentWriter Class Reference
- QTextEdit Class Reference
- QTextEncoder Class Reference
- QTextFormat Class Reference
- QTextFragment Class Reference
- QTextFrame Class Reference
- QTextFrameFormat Class Reference
- QTextImageFormat Class Reference
- QTextInlineObject Class Reference
- QTextItem Class Reference
- QTextLayout Class Reference
- QTextLength Class Reference
- QTextLine Class Reference
- QTextList Class Reference
- QTextListFormat Class Reference
- QTextObject Class Reference
- QTextObjectInterface Class Reference
- QTextOption Class Reference
- QTextStream Class Reference
- QTextTable Class Reference
- QTextTableCell Class Reference
- QTextTableCellFormat Class Reference
- QTextTableFormat Class Reference
- QThread Class Reference
- QThreadPool Class Reference
- QTime Class Reference
- QTimeEdit Class Reference
- QTimeLine Class Reference
- QTimer Class Reference
- QTimerEvent Class Reference
- QToolBar Class Reference
- QToolBox Class Reference
- QToolButton Class Reference
- QToolTip Class Reference
- QTouchEvent Class Reference
- Reference
- QTransform Class Reference
- QTranslator Class Reference
- QTreeView Class Reference
- QTreeWidget Class Reference
- QTreeWidgetItem Class Reference
- QTreeWidgetItemIterator Class Reference
- QUdpSocket Class Reference
- QUndoCommand Class Reference
- QUndoGroup Class Reference
- QUndoStack Class Reference
- QUndoView Class Reference
- QUrl Class Reference
- QUrlInfo Class Reference
- QUuid Class Reference
- QValidator Class Reference
- QVariant Class Reference
- QVariantAnimation Class Reference
- QVBoxLayout Class Reference
- QVector2D Class Reference
- QVector3D Class Reference
- QVector4D Class Reference
- QVideoFrame Class Reference
- QVideoSurfaceFormat Class Reference
- QWaitCondition Class Reference
- QWebDatabase Class Reference
- QWebElement Class Reference
- QWebElementCollection Class Reference
- QWebFrame Class Reference
- QWebHistory Class Reference
- QWebHistoryInterface Class Reference
- QWebHistoryItem Class Reference
- QWebHitTestResult Class Reference
- QWebInspector Class Reference
- QWebPage Class Reference
- QWebPluginFactory Class Reference
- QWebSecurityOrigin Class Reference
- QWebSettings Class Reference
- QWebView Class Reference
- QWhatsThis Class Reference
- QWhatsThisClickedEvent Class Reference
- QWheelEvent Class Reference
- QWidget Class Reference
- QWidgetAction Class Reference
- QWidgetItem Class Reference
- QWindowStateChangeEvent Class Reference
- QWizard Class Reference
- QWizardPage Class Reference
- QWorkspace Class Reference
- QWriteLocker Class Reference
- QX11EmbedContainer Class Reference
- QX11EmbedWidget Class Reference
- QX11Info Class Reference
- QXmlAttributes Class Reference
- QXmlContentHandler Class Reference
- QXmlDeclHandler Class Reference
- QXmlDefaultHandler Class Reference
- QXmlDTDHandler Class Reference
- QXmlEntityResolver Class Reference
- QXmlErrorHandler Class Reference
- QXmlFormatter Class Reference
- QXmlInputSource Class Reference
- QXmlItem Class Reference
- QXmlLexicalHandler Class Reference
- QXmlLocator Class Reference
- QXmlName Class Reference
- QXmlNamePool Class Reference
- QXmlNamespaceSupport Class Reference
- QXmlNodeModelIndex Class Reference
- QXmlParseException Class Reference
- QXmlQuery Class Reference
- QXmlReader Class Reference
- QXmlResultItems Class Reference
- QXmlSchema Class Reference
- QXmlSchemaValidator Class Reference
- QXmlSerializer Class Reference
- QXmlSimpleReader Class Reference
- QXmlStreamAttribute Class Reference
- QXmlStreamAttributes Class Reference
- QXmlStreamEntityDeclaration Class Reference
- QXmlStreamEntityResolver Class Reference
- QXmlStreamNamespaceDeclaration Class Reference
- QXmlStreamNotationDeclaration Class Reference
- QXmlStreamReader Class Reference
- QXmlStreamWriter Class Reference