i want to create an object of type QApplication which needs the main functions arguments argc and argv as an input:
QApplication app(argc, argv);
How about...
int argc = 2; const char* argv[] ={"program","first-argument"};
...or if you need them to be non-const...
int argc = 2; char* argv[] ={strdup("program"),strdup("first-argument")};