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 표준에 정의된 대로 두 글자 또는 세 자리 숫자 countryCode 에 해당하는 QLocale::Territory 열거형을 반환합니다.
코드가 유효하지 않거나 알 수 없는 경우 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 에 대한 두 글자 지역 코드를 반환합니다.
참고: 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()를 사용하세요.
로캘에 대한 영역의 기본 이름을 반환합니다. 예를 들어 스페인어/스페인 로캘의 경우 "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.