Results 1 to 2 of 2

Thread: qml change local language

  1. #1
    Join Date
    Apr 2011
    Posts
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question qml change local language

    i wan't to write an application on qml, and set the language of the application to english....
    i want to print the date using the Qt.formatDate, but this use the local language and i want to use english as local.
    i know that in qt there is QLocale. if there is something similar in qml i would like to know.

  2. #2
    Join Date
    Apr 2011
    Posts
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qml change local language

    hi,
    even if i call the qt function QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates)); from a QDeclarativeItem class it's not working....
    plase any help here?...

Similar Threads

  1. Change UI Language of Qt Tools
    By shentian in forum Qt Tools
    Replies: 4
    Last Post: 10th July 2013, 08:45
  2. Replies: 3
    Last Post: 23rd April 2011, 16:42
  3. Change language of the application
    By franco.amato in forum Newbie
    Replies: 1
    Last Post: 14th October 2010, 22:45
  4. how change language at runtime?
    By mattia in forum Newbie
    Replies: 3
    Last Post: 14th November 2007, 18:36
  5. Replies: 8
    Last Post: 15th May 2007, 09:21

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.