PDA

View Full Version : Validation Issue



StarRocks
21st July 2012, 10:33
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]

wysota
21st July 2012, 10:58
You get content of a line edit with QLineEdit::text(). You show a message box with QMessageBox::critical() or QMessageBox::information().