[Qt-interest] Qt and exceptions
Anthony Serdyukov
uksus70 at gmail.com
Wed Dec 10 17:18:45 CET 2008
Since you live in the qt world, all your code is called from the event
loop, and there your exception is thrown. So, you can override the
notify() method and surround the inherited call with try block.
However, i dont think it's a good idea to catch exception on this
level - you just cant handle it properly here. If you describe your
exception architecture in details, the advise could be more useful.
2008/12/10, Stephan Rose <kermos at somrek.net>:
> On Wed, 2008-12-10 at 20:40 +0700, Anthony Serdyukov wrote:
>> You need to override notify() method of QCoreApplication, as far as i
>> remember.
>
> I looked at that but that just seems to deal with events, there is no
> mention about exceptions in the docs. I also don't see anything in the
> function that would help me allow dealing with exceptions.
>
> Hmm, maybe I need to see if I can find a better way to do this somehow.
>
> Thanks,
>
> Stephan
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Regards,
Anthony
More information about the Qt-interest-old
mailing list