Obsolete Members for QLocale
クラス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 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)
この関数は6.6から非推奨となった。新しいコードでは使用しないことを強く推奨する。
ISO 3166 標準で定義されている 2 文字または 3 桁のcountryCode に対応するQLocale::Territory enum を返します。
コードが無効な場合や不明な場合はQLocale::AnyTerritory が返されます。
代わりにcodeToTerritory(QStringView) を使用してください。
この関数は Qt 6.1 で導入されました。
territoryToCode(),codeToLanguage(),codeToScript()も参照してください 。
[static, deprecated in 6.6]
QList<QLocale::Country> QLocale::countriesForLanguage(QLocale::Language language)
この関数は6.6から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにmatchingLocales() を使い、それぞれのterritory() を参照してください。
Qt のロケールデータベースにlanguage のエントリがある国のリストを返します。結果が空リストの場合、language は Qt のロケールデータベースで表現されていません。
matchingLocales()も参照してください 。
[deprecated in 6.6]
QLocale::Country QLocale::country() const
この関数は6.6から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにterritory() を使用します。
このロケールの領域を返します。
language()、script()、territoryToString() およびbcp47Name()も参照ください 。
[static, deprecated in 6.6]
QString QLocale::countryToCode(QLocale::Country country)
この関数は6.6から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにterritoryToCode() を使用してください。
ISO 3166 標準で定義されているcountry の 2 文字の領域コードを返します。
注意: QLocale::AnyTerritory
あるいはQLocale::AnyCountry
の場合は、空の文字列が返されます。
codeToTerritory()、territory()、name()、bcp47Name()、languageToCode()、scriptToCode()も参照 。
[static, deprecated in 6.6]
QString QLocale::countryToString(QLocale::Country country)
この関数は6.6から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにterritoryToString() を使用してください。
country の名前を含むQString を返す。
languageToString()、scriptToString()、territory()、bcp47Name()も参照 。
[deprecated in 6.6]
QString QLocale::nativeCountryName() const
この関数は6.6から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにnativeTerritoryName() を使用してください。
そのロケールにおける地域の固有名を返します。たとえば Spanish/Spain ロケールの場合は "España" となります。
nativeLanguageName() およびterritoryToString()も参照 ください。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.