[Qt-interest] try-catch in QApplication::notify() reimplementation

Malyushytsky, Alex alex at wai.com
Sat Aug 7 01:43:04 CEST 2010


>> As a side note, it *is* considdered good style to use the virtual
keyword in derived classes anyway, especially if that class is part of
some API or is meant to be subclassed itself.

I am not sure about this, both approaches have advantages and disadvantages, but you should direct this to Qt developers team, not to me.
There is bug tracking system for such purpose.

As a side note it *is* considered good style to run spellchecker on anything you write,
Especially, if that message is going to be available to public, but not everybody does it, neither you, neither me :P

Alex


-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Andre Somers
Sent: Thursday, August 05, 2010 10:23 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] try-catch in QApplication::notify() reimplementation

Op 5-8-2010 23:29, Malyushytsky, Alex schreef:
> Virtual functions does not have to have "virtual" keword in the derived classes.
> So notify is virtual, check:
>
> bool QCoreApplication::notify ( QObject * receiver, QEvent * event )   [virtual]
>
> Alex
>
As a side note, it *is* considdered good style to use the virtual
keyword in derived classes anyway, especially if that class is part of
some API or is meant to be subclassed itself.

André

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
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.”




More information about the Qt-interest-old mailing list