[Qt-interest] How to handle error

Malyushytsky, Alex alex at wai.com
Fri Jun 25 22:04:56 CEST 2010


connect  retuns a value which you can check.
I usually do it for debug only:

bool ok = connect(......); Q_ASSERT( ok);


Regards,
   Alex

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Ramesh
Sent: Friday, June 25, 2010 3:08 AM
To: qt-interest at trolltech.com; QtS60-feedback at trolltech.com; qt-embedded-interest at trolltech.com
Subject: [Qt-interest] How to handle error

Hi all,

I don't think any class in Qt which tell the reason why error is appeared.

Some time we do mistake in  writing the programmes, some programme run with error only, it's pretty tough to identify the cause for error in Debugging the code.

For example in connecting the SIGNAL of one class to SLOT of another  need to have many conditions like, class object should be meta object,
parameters should be same. even if we do small mistake also programme will compile, but signal slot will not work.

Like this there may be verity of problems.

Is there any class which popup error number, using that we can identify easily the cause for problem. Is there any such mechanism in Qt?





-----------------------------------------------

Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.



---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100625/08f61817/attachment.html 


More information about the Qt-interest-old mailing list