THE EXPLANATION
QApplication::applicationDirPath
is a static member function, to get the value you are looking for you must treat it as such, hence; you must call the function.
Currently you are trying to pass a function pointer to QString::arg
, and since the compiler cannot find a suitable overload for such construct it raises a diagnostic.
THE SOLUTION
QString msgText = QString(...).arg(QApplication::applicationDirPath ());
Note: See the added ()
after QApplication::applicationDirPath
.