"10: ", as expected.
I guess I'm missing some point.
Cuz it worked for me too.
Thanks for your replies.
If you want the zeroes to be appended automatically, change the input mask to: "99:99;0"
Hi,
problem solved! thanks.
But I have another problem now. You know if the inputMask does not fit what you wrote in the lineedit, editingFinished() signal does not work. So when you focus out from the lineedit with the cursor and still the inputMask does not fit with the text in lineedit, although you lost the focus in that lineedit editingFinish() signal isn't emitted!
I wrote a method that takes the string in lineedit and make it fit with inputMask visually when the lineedit loses the focus by the cursor , but unfortunately I'am not able to emit edittingFinish() signal. Is there a way to perform this?
Apply a validator (subclass of QValidator) on the widget and make sure its fixup() method is implemented correctly. This should do the trick.
Bookmarks