Hi,
I'm trying to make an inputMask on my QLineEdit to ONLY accept negative and positive numbers with 2 decimals.
Is it possible to do it or I need a QDoubleValidator?
Thanks
Hi,
I'm trying to make an inputMask on my QLineEdit to ONLY accept negative and positive numbers with 2 decimals.
Is it possible to do it or I need a QDoubleValidator?
Thanks
You have to use QDoubleValidator or QRegExpValidator
For example this QRegExp works for you
Qt Code:
To copy to clipboard, switch view to plain text mode
A camel can go 14 days without drink,
I can't!!!
Bookmarks