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()`을 사용하십시오.
지정된 로캘에 해당하는 지역의 현지명을 반환합니다. 예를 들어, Spanish/Spain 로캘의 경우 "España"를 반환합니다.
nativeLanguageName() 및 territoryToString()도 참조하십시오 .
© 2026 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.