1 CONFIG -= rtti
2 QMAKE_CFLAGS += $$QMAKE_CFLAGS_RTTI_OFF
3 QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_RTTI_OFF
4 DEFINES += QT_NO_DYNAMIC_CAST