[Qt-interest] New Bee Question: Quiting under following situation

Rahulkumar Tibdewal rahulkumar_tibdewal at persistent.co.in
Tue Jun 9 17:17:43 CEST 2009


Hi All,

I want to quit a application from the following code.

QMessageBox::StandardButton reply;
reply = QMessageBox::information(this, tr("xyz"),tr("xyz"));
if(reply == QMessageBox::Ok)
{
                //Some to be done here to close the application.
}

In the code above, I am having a problem in getting reference of OKButton.
So I was not able to quit application by using connect (okButton, SIGNAL(clicked), qApp, SLOT(quit()));

Please help me in getting rid of this situation.

Thanks
Rahul

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090609/fe870165/attachment.html 


More information about the Qt-interest-old mailing list