×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    41

    Smile how to: Accept only alphabets

    Hi,

    Hi I want to make a QLineEdit accept only alphabets, i.e if any other key is pressed I should alert the user to enter only alphabets.

    Thank you.


    Regards,
    Imran

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: how to: Accept only alphabets

    Implement your own validator derived from http://doc.trolltech.com/4.6/qvalidator.html
    and then set it to QLineEdit http://doc.trolltech.com/4.6/qlineed...l#setValidator

Similar Threads

  1. Accept() call from the RSocket class.
    By LearningCurve in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2004-10-26, 19:30
  2. Accept fails in real device
    By mikfi in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-04-06, 12:48
  3. Inconsistent Accept strings on the Nokia 3650
    By deeper in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2003-08-11, 13:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×