[Qt-interest] How do we step one level out of given application directory path.

Ender EREL erelender at yahoo.com
Thu Feb 12 12:31:56 CET 2009


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 -  -



More information about the Qt-interest-old mailing list