I have a QLineEdit, and when user enter some number into it, i want to replace that string with its currency represantation.
I tried to change the input on textChanged(const QString&) signal on that QlineEdit object, but i had involved lots of problems.
IMHO, There must be easy way to tell QLineEdit, use that locale to change numbers into currency.
Rather than textChanged() were you will be changing the text as the user types, try editingFinished() where you can write a 'fixup' routine to format the text. The routine will trigger when the user tabs out or clicks out of the QLineEdit.
Bookmarks