Results 1 to 2 of 2

Thread: Validation Issue

  1. #1
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Thanks
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Exclamation Validation Issue

    Dear Forums,


    Hi Guys i have a doubt, I have to validate the fields like if i doesn't enter anything in the fields and click on the Submit/Login Button it should raise an error saying please enter the Username and so on..............Any Solution would be appreciable..........It would be good if someone sends me the sample code of a form...........Thankyou in Advance.........



    Regards,

    Venugopal
    [/SIZE]
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Validation Issue

    You get content of a line edit with QLineEdit::text(). You show a message box with QMessageBox::critical() or QMessageBox::information().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Ip Address Validation
    By bruccutler in forum Qt Programming
    Replies: 26
    Last Post: 3rd November 2010, 03:58
  2. XML validation error
    By flowmaster in forum Newbie
    Replies: 3
    Last Post: 15th September 2010, 14:38
  3. XML Validation
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 15th September 2010, 13:07
  4. IP Address Validation
    By rk0747 in forum Qt Programming
    Replies: 5
    Last Post: 10th June 2010, 08:18
  5. Validation
    By Tavit in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2009, 07:03

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.