How about:
Qt Code:
#include <QApplication> int main(int argc, char **argv){ bool gui = true; for(int i=1; i<argc; i++) if(!strcmp(argv[i], "--console")){ gui = false; break; } //... return app.exec(); }To copy to clipboard, switch view to plain text mode





Reply With Quote
Bookmarks