One way to do it would be: QDir dir(QApplication::applicationDirPath()); dir.cdUp(); QString path = dir.absolutePath(); Also you can parse the string and throw away the characters after the last "/", but the first is easier. -- ender - -