Correction of the segmentation fault that always occured: argc must be given by reference accordig to http://stackoverflow.com/questions/22243674/segmentation-fault-when-qt-qapplication-created-with-new