Results 1 to 2 of 2

Thread: QLineEdit check Input

  1. #1
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QLineEdit check Input

    Hi everybody,
    How could i check if the value from a lineedit contains just ASCII alphanumeric characters like A-Z, a-z, 0-9??
    setValidator should be the solution??But i havent found a example..
    Where could i found a complete example?
    thanks
    Think DigitalGasoline

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QLineEdit check Input

    QRegExpValidator (read carefully the detailed description part, there's an example...)
    J-P Nurmi

Similar Threads

  1. check box and signal
    By mickey in forum Newbie
    Replies: 7
    Last Post: 10th November 2007, 14:21
  2. Replies: 2
    Last Post: 31st May 2006, 21:52
  3. Discard user input events in QEventLoop.
    By Ben.Hines in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2006, 20:49
  4. How Qt/Embedded detects the keypad input from device?
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 4th April 2006, 07:08
  5. a box around QLineEdit?
    By GreyGeek in forum Qt Tools
    Replies: 13
    Last Post: 8th February 2006, 15:40

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.