Skip to content
Qt 6.11 is out! See what's new in the release blog
  • 0 Votes
    2 Posts
    6k Views
    p3c0P
    @HappyCoder Apart from using inputMask you will also need to set a validator. RegExpValidator would be perfect choice for it. A common validator for hh:mm:ss I found was this /^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/ Usage is simple: validator: RegExpValidator { regExp: /^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/ } You can also find another validators.