Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
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 ?