[Qt-interest] checking the return value of connect

Thiago Macieira thiago at kde.org
Fri Jul 8 09:29:53 CEST 2011


On Friday, 8 de July de 2011 07:09:10 Graham Labdon wrote:
> Hello all
> I am relatively new to Qt programming, in the books that I have read the
> return value from a connect statement is not checked. So my question is -
> should real applications check the return value of connect statements. I
> can see a benefit during development but in the final application what can
> be done if the connect fail?

Design your application so it never happens. If it does happen, a warning 
message will be output to the standard debug (on Windows) or standard error 
(others).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110708/cb35234a/attachment.bin 


More information about the Qt-interest-old mailing list