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

Rahulkumar Tibdewal rahulkumar_tibdewal at persistent.co.in
Tue Jun 9 19:45:50 CEST 2009


Problem is when I wait application goes to unresponsive state after keeping the Messagebox open for some 5 to 6 min.

Thanks
Rahul

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of John McClurkin
Sent: Tuesday, June 09, 2009 10:22 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] New Bee Question: Quiting under following situation

Rahulkumar Tibdewal wrote:
> Hi All,
> 
>  
> 
> I want to quit a application from the following code.
> 
>  
> 
> QMessageBox::StandardButton reply;
> 
> reply = QMessageBox::information(this, tr("xyz"),tr("xyz"));
You are using one of the static QMessageBox functions. I don't think you 
can get a reference to the buttons in these static dialogs.

> 
> if(reply == QMessageBox::Ok)
> 
> {
> 
>                 //Some to be done here to close the application.

Just call qApp->quit() at this point.

> 
> }
> 
>  
> 
> 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()));
> 
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

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.




More information about the Qt-interest-old mailing list