try{}catch(...){}
QMAKE_CXXFLAGS += -fexceptions
CONFIG += qt thread debug_and_release
try{if(1)throw("");}catch(...){qDebug() <<"error";}