PDA

View Full Version : localized app to KDE selected language



rosenth
4th October 2010, 16:58
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.

wladek
5th October 2010, 14:43
Hi rosenth,

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

Wouldn't this work in your case?

Wladek

rosenth
7th October 2010, 12:20
in mean, OS should determine type of a QLineEdit or any text, and format it as local.
for example for digits, currency, DateTime ... .