How to get the relative path from QFileDialog::getExistingDirectory
Posted on 2007-12-05
im creating a list of directories which are supposed to be listed as relative path to the application.
but with QFileDialog::getExistingDirectory I always get the absolute path.
Is there a way to change the absolute path to relative path? Or any other way to get the relative path?
I want the string data/source1 returned . The app is running in the directory above data.
What I get returned is the absolute path /home.local/bla/etc/moreEtc/data/source1
Thank you in advance