Solved How to get the path to this file in program A, when program A is selected as the opening method?
-
I can get it in the args parameter of the main function in windows, but not in macOS.
int start(int argc, char* argv[]) { QApplication* a = new QApplication(argc, argv); QStringList args = a->arguments(); }
-
Hi
MacoS works in other way.
You app will be sent a QFileOpenEvent and you must respond to that. -
Hi
MacoS works in other way.
You app will be sent a QFileOpenEvent and you must respond to that.