以下成員源於類 QLocale 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated in 6.6)
QLocale::Country
|
country () const |
(deprecated in 6.6)
QString
|
nativeCountryName () const |
(since 6.1, deprecated in 6.6)
QLocale::Country
|
codeToCountry (QStringView countryCode ) |
(deprecated in 6.6)
QList<QLocale::Country>
|
countriesForLanguage (QLocale::Language 語言 ) |
(deprecated in 6.6)
QString
|
countryToCode (QLocale::Country country ) |
(deprecated in 6.6)
QString
|
countryToString (QLocale::Country country ) |
[static noexcept, since 6.1, deprecated in 6.6]
QLocale::Country
QLocale::
codeToCountry
(
QStringView
countryCode
)
This function is deprecated since 6.6. We strongly advise against using it in new code.
返迴 QLocale::Territory enum corresponding to the two-letter or three-digit countryCode ,如 ISO 3166 標準定義的。
若代碼無效或未知 QLocale::AnyTerritory 被返迴。
使用 codeToTerritory ( QStringView ) 代替。
該函數在 Qt 6.1 引入。
另請參閱 territoryToCode (), codeToLanguage (),和 codeToScript ().
[static, deprecated in 6.6]
QList
<
QLocale::Country
> QLocale::
countriesForLanguage
(
QLocale::Language
語言
)
This function is deprecated since 6.6. We strongly advise against using it in new code.
使用 matchingLocales () instead and consult the territory () of each.
Returns the list of countries that have entries for language in Qt's locale database. If the result is an empty list, then language is not represented in Qt's locale database.
另請參閱 matchingLocales ().
[deprecated in 6.6]
QLocale::Country
QLocale::
country
() const
This function is deprecated since 6.6. We strongly advise against using it in new code.
使用 territory () 代替。
返迴此區域設置的地區。
另請參閱 language (), script (), territoryToString (),和 bcp47Name ().
[static, deprecated in 6.6]
QString
QLocale::
countryToCode
(
QLocale::Country
country
)
This function is deprecated since 6.6. We strongly advise against using it in new code.
使用 territoryToCode () 代替。
返迴 2 字母地區代碼為 country ,如 ISO 3166 標準定義的。
注意:
For
QLocale::AnyTerritory
or
QLocale::AnyCountry
返迴空字符串。
另請參閱 codeToTerritory (), territory (), name (), bcp47Name (), languageToCode (),和 scriptToCode ().
[static, deprecated in 6.6]
QString
QLocale::
countryToString
(
QLocale::Country
country
)
This function is deprecated since 6.6. We strongly advise against using it in new code.
使用 territoryToString () 代替。
返迴 QString 包含名稱對於 country .
另請參閱 languageToString (), scriptToString (), territory (),和 bcp47Name ().
[deprecated in 6.6]
QString
QLocale::
nativeCountryName
() const
This function is deprecated since 6.6. We strongly advise against using it in new code.
使用 nativeTerritoryName () 代替。
Returns a native name of the territory for the locale. For example "España" for Spanish/Spain locale.
另請參閱 nativeLanguageName () 和 territoryToString ().