26int main(
int argc,
char *argv[]){
30 QApplication
app(argc, argv);
31 QStringList args = QCoreApplication::arguments();
36 std::setlocale(LC_NUMERIC,
"C");
39 fmt.setDepthBufferSize(24);
40 fmt.setStencilBufferSize(8);
42 fmt.setProfile(QSurfaceFormat::CoreProfile);
43 QSurfaceFormat::setDefaultFormat(
fmt);
48 process.
start(ultragridExecutable, QStringList());
49 if(process.waitForStarted(1000) ==
false) {
51 msgBox.setText(ultragridExecutable +
" doesn't seem to be executable.");
52 msgBox.setInformativeText(
"Please install uv (UltraGrid binary) to your system "
53 "path or supply a '--with-uv' parameter.\n\n"
54 "Please check also if the binary is executable.");
55 msgBox.setIcon(QMessageBox::Critical);
60 process.waitForFinished();
62 if (process.exitStatus() == QProcess::CrashExit || process.exitCode() != 0) {
64 msgBox.setText(
"UltraGrid has crashes when invoked without arguments!");
65 msgBox.setIcon(QMessageBox::Critical);