Results 1 to 2 of 2

Thread: input mask question

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default input mask question

    Hi,

    Is it possible to set an input mask for a line edit, for example setInputMask("99:99:XX"), where XX are two characters clearly and XX is not editable.

    For instance, I could type --- 56:56 K
    And whenever I attempt to change the text in the line edit, I could only edit the numbers but not the XX part.

    Thanks in advance.

  2. #2
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: input mask question

    Hi,

    Is it possible for a lineedit to check whether it's OK with the given input mask without the usage of validator?

    Thanks in advance.

Similar Threads

  1. QLineEdit and input mask
    By tpf80 in forum Qt Programming
    Replies: 7
    Last Post: 9th May 2014, 19:47
  2. how to make input mask and validator work together?
    By homerli in forum Qt Programming
    Replies: 11
    Last Post: 5th June 2009, 09:53
  3. input mask problem
    By zgulser in forum Qt Programming
    Replies: 10
    Last Post: 8th May 2009, 14:11
  4. Mixing QRegExpValidator and input mask and QLineEdit
    By abernat in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2009, 00:04
  5. Replies: 5
    Last Post: 24th July 2007, 17:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.