Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to get country code not ISO code



  • I'm developing an application for Windows. I find a way to get country code like 1(USA) and 82(South Korea).
    Help me~!!

    Thank you~



  • @kjlee said:

    I'm developing an application for Windows. I find a way to get country code like 1(USA) and 82(South Korea).

    I assume you mean country calling codes? (Though 1 is actually not USA per se, its North America - ie includes Canada and some Caribbean nations too).

    I'm not aware of anything Qt-specific, but Google's libphonenumber (open source) does include a C++ API... its probably more likely to be kept up to date than most alternatives.

    Cheers.


Log in to reply