See QDir and QDir::cdUp
Basically, you can give QCoreApplication::applicationDirPath() to the constructor of QDir, then perform cdUp function on that object and retrieve new directory. If it's not possible to go further up (eg. if the application is in the root directory), the cdUp method will fail.




Reply With Quote

Bookmarks