char prog[1000];sprintf( prog, "text" );QString mainProgramFile=QString::fromAscii( prog );qDebug() << "Set main program file to " << mainProgramFile; // <-- Здесь сегфолт
C++ (Qt)char prog[1000] = {'\0'}
qInstallMsgHandler(myMessageOutput); QtSingleApplication app(argc, argv); if(app.isRunning()) // Не запущен ли другой экземпляр { printf("Another exemplar is running.\n"); exit(0); }
QStringList QCoreApplication::arguments () [static]