Hi,

I am making a QlineEdit in Qt designer. Within the designer, I am using an input mask of "99999" (which designer adds a ";" character to the end of by itself) so that it forces the user to enter a zip code with only numbers. The input mask works perfectly, except for one thing: when I compile the program, run it, and click on the field that I put the mask on, the cursor always starts at the end of the field, as if there were 5 space characters inserted in the field from the start. If I use backspace or delete, I can delete these space characters and then type in the field, and the input mask works. If I take off the input mask, the cursor starts at the correct position, but then I can not control what the user enters.

Is there any way to have the input mask present but not have it put these extra space characters in the field?