PDA

View Full Version : Character alignment issue when using input masks with QLineEdit



graffy
5th September 2019, 18:01
Hello,

I'm trying to sort out how to use input masks with a QLineEdit and it's craeting some awkward aesthetics I don't know how to overcome.

Specifically, if I specify an input mask for a floating point value ("00009.99"), it places the required digit to the left of the decimal at the far left, leaving space between it and the decimal point (as indicated in the screenshot below).

Is there any way to control character alignment in a control when using input masks?

13253