27 #include <QApplication>
29 #if defined(_WIN32) && defined(_MINGW)
31 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
36 int main(
int argc,
char** argv)
38 bool show_console =
false;
41 QApplication app(argc, argv);
50 if (!show_console) FreeConsole();
59 if (show_console) *show_console =
false;
61 for (
int i = 1; i < argc; ++i)
63 if (strcmp(argv[i],
"-c") == 0 || strcmp(argv[i],
"--c") == 0 || strcmp(argv[i],
"-console") == 0)
65 if (show_console) *show_console =
true;