[Solved] Mac, console application and arguments
-
Is there a way to pass arguments to a Qt console aplication on mac?
QCoreApplication::arguments().count() is always empry (on Mac) but on Linux works perfectly. -
Hi,
could you show some code?
Our program use command line on Mac and works -
Here you are:
Commando line: open MyApp.app --args --Dir=/Users/denis/Pictures/
...if (QCoreApplication::arguments().count()< 2) {
qDebug() << "Please usage:";
... -
Solved using
exec MyApp.app/Contents/MacOS/MyApp --Dir=/Images