title: Defining own main functions arguments argc and argv
body: <p>i want to create an object of type QApplication which needs the main functions arguments argc and argv as an input:</p>
  
  <pre><code>QApplication app(argc, argv);
  </code></pre>
  
  <p>Since i am within a user defined function without access to the main function i want to define this arguments on my own. I have tried several approaches but i cannot get the type conversion right. My last approach did not work either:</p>
  
  <pre><code>int argc = 1;
  char **argv; 
  char arguments[1][12] = {{"cgalExample"}};
  argv = arguments;
  </code></pre>
  
  <p>Thanks for any hint.</p>