How can i open dir?
-
I have object of class QDir, how i can open this directory?
-
The best reference is "this":http://doc.qt.nokia.com/4.7/qdir.html
What do you mean with opening?
If you are looking for setting the "working path":http://doc.qt.nokia.com/4.7/qdir.html#setCurrent this might be the solution.
-
I want that dir will be open in system filemanadger
-
Perhaps QDesktopServices::openUrl can be of help to you.
-
I already tried, but it is doesnt worke
I try
@ QUrl url;
url.setPath(QFileInfo(addressOfCurrenFile).dir().absolutePath());
QDesktopServices::openUrl(url);//program hangs@
@ QUrl url(QFileInfo(addressOfCurrenFile).dir().absolutePath());
QDesktopServices::openUrl(url);@ -
Did you try using QUrl::fromLocalFile?
-
I try, but it is worke noly with files, no dir
-
Then, I am sorry, I think you have to resport to platform dependent code. On windows, you can start explorer.
-
pity, thank you for your try to help