Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Laying out multiple text fields in a single line for date edit
patrickkidd last edited by
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?
Cant you use a mask ?