I'm developing an application for Windows. I find a way to get country code like 1(USA) and 82(South Korea).
Asked
Active
Viewed 1,142 times
0
-
I think the only country codes Qt has as built in are ISO 3166 country codes, see QLocale class – demonplus Apr 19 '16 at 04:01
-
With county code you mean the phone prefix? That week most probably require a mapping not part of Qt. – Frank Osterfeld Apr 19 '16 at 05:52
1 Answers
0
Qt
provides the QLocale::Country enum
which includes all countries. You can use the countryToString
static method in order to get the name of each country.

pnezis
- 12,023
- 2
- 38
- 38
-
Thank you for answer. But, I want to get "Country Codes" not country name . "County codes" means international call number like +1, +82, +86 and so on. – Storm Apr 20 '16 at 05:34