PDA

View Full Version : Using exceptions with Qt



vu64
16th May 2009, 10:24
I have done some search on Google about using exceptions with Qt. Some say you can, some say you can't. This has been asked here once but I want you to clarify how to use exceptions in combination with Qt.

lni
17th May 2009, 04:28
I have done some search on Google about using exceptions with Qt. Some say you can, some say you can't. This has been asked here once but I want you to clarify how to use exceptions in combination with Qt.




try {
throw "throw something";
catch( ... ) {
qDebug() << "caught something";
}