Hi ,every one.
my program with qt 4.6.3+vs2008,and found that there is not try ... catch in Qt4.6.3.How to use try... catch in vs 2008 debug mode?thank you very much!
Printable View
Hi ,every one.
my program with qt 4.6.3+vs2008,and found that there is not try ... catch in Qt4.6.3.How to use try... catch in vs 2008 debug mode?thank you very much!
Qt is a library not a language. Use try-catch like in normal C++ program.
thank you ,I try it.
But be aware that exceptions will cause problems if they are thrown in a Qt event handler (like a slot). See this stackoverflow article. So, you should not be writing code that throws exceptions if you are writing it for use with Qt, unless isolate it to within code that does not use the Qt event loop.