As you can see from the source code if QT_FATAL_ASSERT isn't defined your app will call qWarning. To make your program exit (i.e. call qFatal) upon an assert failure you need to define the flag.

You can put the following statement as the first line of your .cpp file:
Qt Code:
  1. #define QT_FATAL_ASSERT
To copy to clipboard, switch view to plain text mode 
Or put the following in your .pro file:
Qt Code:
  1. DEFINES += QT_FATAL_ASSERT
To copy to clipboard, switch view to plain text mode