Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
How can i open dir?
I have object of class QDir, how i can open this directory?
koahnig last edited by
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
@ QUrl url;
@ QUrl url(QFileInfo(addressOfCurrenFile).dir().absolutePath());
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