I got very strange behaviour with my very simple example which crashes when i use inheritance (class NapanaApplication : public QGuiApplication), but doesn\'t crash
Your function has int argc instead. I think you're causing a segfault when the integer value is then treated as a reference by the parent class constructor.