PDA

View Full Version : handling exceptions



mohanakrishnan
25th November 2009, 10:47
hi
Is there any way how to handle exception in qt..??i came to know ,qt does not have class to handle exception.If so ,how to handle exception of qt by c++.Pls show some examples of exception handling .any help is appreciated
thanks.
:crying:

wysota
25th November 2009, 11:15
Two facts:
1. Qt doesn't throw exceptions from its own routines
2. Qt is pure C++.

Deduce the rest.

mohanakrishnan
25th November 2009, 13:12
hi wysota
then i need to implement c++ exception handling ???
thanks
:)

caduel
25th November 2009, 13:33
There is no other exception handling (than C++ exception handling), is there?

If you or some other code you are calling throws exceptions, then: yes, you should catch and handle those. No exceptions will be thrown by Qt itself, so if you don't throw either and you use no other software that does, then there will be no exceptions around that could be caught.