Unsolved Laying out multiple text fields in a single line for date edit
-
Hi there!
I am trying to make a better date edit than QDateEdit, which is quite clunky. I want to lay out a day, month, and year edits on the same line with slashes in between, like Apple's Calendar app (see screenshot). But how to get the spacing right? I used QFontMetrics to calculate the character width but this is slightly inaccurate across versions of macOS.
Thoughts? Anyone seen a better date edit?
-
Hi
Cant you use a mask ?
http://doc.qt.io/qt-5/qlineedit.html#inputMask-prop