Results 1 to 2 of 2

Thread: how to exclude the invalid inputs for the TextInput field

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2012
    Posts
    29
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default how to exclude the invalid inputs for the TextInput field

    Hi All,

    I have a set of invalid inputs. how to restrict those inputs form the user for my textInput field. I can use regExpValidator but that is for the list of valid inputs. my list of valid inputs contains more elements than invalid inputs. Is there any way to specify not to allow invalid inputs only. thanks in advance for your help

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to exclude the invalid inputs for the TextInput field

    Create your own validator based on QValidator.

Similar Threads

  1. Replies: 0
    Last Post: 5th November 2013, 06:34
  2. Replies: 12
    Last Post: 8th August 2013, 07:31
  3. TextInput overflow
    By Viper666 in forum Qt Quick
    Replies: 2
    Last Post: 2nd January 2013, 12:52
  4. unable to get uni-code inputs from another thread
    By Mohammad in forum Qt Programming
    Replies: 3
    Last Post: 15th November 2011, 14:56
  5. Need to find a way to save user inputs.
    By "BumbleBee" in forum Newbie
    Replies: 23
    Last Post: 4th November 2011, 14:10

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.