I am writing a C ++ program using the Qt library. I would like to get the current working directory of my program. I found the function QDir :: currentPath () and QCoreApplication :: applicationDirPath () , but they return the directory in which the application executable is running. I do not want to get the directory containing the application executable.
I uploaded an image that describes the path I want to get.

Does anyone have any solutions?
Thanks!
c ++ qt
Tan viet
source share