I'd like to pass the command line arguments programmatically, but I don't seem to get it working.

Any example how to pass for example "-o c:\myfile.log" to qcoreapplication in int main?