I've encountered a big surprise for me.
My program doesn't catch any exception (in particully in main function ) when qt libraries have been included.
I googled this problem and didn't find an answer.
Please explain me:
1) Why this happens ?
2) How to bypass this ? I use a combination of libraries in software development (stl, boost, opencv) and i cant develop software, applying ONLY QT.
Details:
QT version - 5.2
Mingw 4.8 and 6.02

.pro file
Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-04-28T23:53:47
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT += core gui
  8.  
  9. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  10. TARGET = qt_eception
  11. TEMPLATE = app
  12.  
  13.  
  14. SOURCES += main.cpp
  15.  
  16. HEADERS +=
  17.  
  18. FORMS +=
To copy to clipboard, switch view to plain text mode 
main.cpp
Qt Code:
  1. #include <QApplication>
  2.  
  3. #undef main
  4. int main(int argc, char *argv[])
  5. {
  6.  
  7. try
  8. {
  9. QApplication a(argc, argv);
  10. throw "ex";
  11. }
  12. catch(...)
  13. {
  14. // Do Nothing
  15. }
  16. return 0;
  17. }
To copy to clipboard, switch view to plain text mode 
bug.jpg