qt-interest@trolltech.com
[Top] [All Lists]

System locale in Qt/Windows Mobile

Subject: System locale in Qt/Windows Mobile
From: "Constantin Makshin"
Date: Thu, 26 Jun 2008 16:54:12 +0400
Qt/Windows Mobile can't detect system locale and QLocale::system() always returns "C" locale, regardless of OS language (I know language isn't the same as locale, but it seems to be a bug anyway).

I didn't file a bug reports because I couldn't find appropriate OS/platform in submit form.

Example application:

#include <QApplication>
#include <QLabel>
#include <QLocale>

int main (int argc, char** argv)
{
   QApplication app(argc, argv);
   QLabel label(QLocale::system().name());
   label.showMaximized();
   return app.exec();
}

--
Constantin "Dinosaur" Makshin

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>