Re: QDecimalEdit - Help...!
I think the easiest way is to connect to the QLineEdit::textEdited(const QString&) and adjust the text yourself and set it back every time the user types something.
You can also change the cursor position, etc.
You must use that signal instead of textChanged, since it is not emitted when you change the text programmatically.
Regards
Re: QDecimalEdit - Help...!
Hey, can you provide me with some sample code..?
Re: QDecimalEdit - Help...!
One possibility could be to use a custom validator. Do the required adjustments in reimplemented QValidator::fixup().
Re: QDecimalEdit - Help...!
can i have some small sample code?
Re: QDecimalEdit - Help...!
Unfortunately I don't have anything at handy. Start with reading QValidator detailed description. Then,