No way to create localized list of country names?

I can't find a Qt equivalent to the ICU Locale::getDisplayCountry function. I am looking for a function that will allow me to display a list of country names, all localized into the same language.

I have found QLocale::countryToString, but that just gives me the invariant QLocale name for the country, not a localized version. And QLocale::nativeCountryName () seems to work only for actual locale combinations (I can get the Spanish name for Spain, but not the Spanish name for Denmark, for instance).

The strings you write in tr() will become translatable, so you can simply translate those strings in Qt Linguist, separately for each language you want to support in your software.

Then simply install the desired translator using qApp->installTranslator() as usual...

(If your actual question was whether Qt already contains translations of all country names into all languages, then I'm not quite sure. But the answer might be that it doesn't. And then you'll have to do it yourself)