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?
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?
Nevermind, it was too simple.
Qt Code:
argv[1]="-o"; argv[2]="c:\mytest.logt"; argc += 2;To copy to clipboard, switch view to plain text mode
Bookmarks