Results 1 to 3 of 3

Thread: localized app to KDE selected language

  1. #1
    Join Date
    Apr 2010
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default localized app to KDE selected language

    hi
    is there any way to tell QLineEdit to work with numbers,formatted in KDE "country/Region Language" settings?
    for example: while i typing digits , it shows:
    134,244,121
    this is what i've got in windows & VS.

  2. #2
    Join Date
    May 2010
    Posts
    61
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    2
    Thanked 6 Times in 5 Posts

    Default Re: localized app to KDE selected language

    Hi rosenth,

    How about trying to declare a QRegExpValidator, and using the QLineEdit::setValidator function?

    Wouldn't this work in your case?

    Wladek
    One second is long, everything longer than two seconds is definitely too long.

  3. #3
    Join Date
    Apr 2010
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: localized app to KDE selected language

    in mean, OS should determine type of a QLineEdit or any text, and format it as local.
    for example for digits, currency, DateTime ... .

Similar Threads

  1. Language of QFileDialog
    By cevou in forum Qt Programming
    Replies: 1
    Last Post: 7th May 2010, 01:55
  2. 1.3.0 - UI Language
    By Asperamanca in forum Qt Tools
    Replies: 2
    Last Post: 16th December 2009, 12:19
  3. Qt language of choice
    By alecs1 in forum Qt Programming
    Replies: 4
    Last Post: 26th April 2009, 21:13
  4. QT Language auto
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 3rd April 2008, 14:45
  5. How can I add any other language
    By ethos0714 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 22nd February 2006, 03:51

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
  •  
Qt is a trademark of The Qt Company.