QT Open default file explorer on *nix

QT Open default file explorer on *nix

Asked on January 11, 2019 in Qt.
Add Comment


  • 1 Answer(s)

    Open default file explorer on *nix:

    To get more information click this link QDesktopServices

    QString path = QDir::toNativeSeparators(QApplication::applicationDirPath());
    QDesktopServices::openUrl(QUrl::fromLocalFile(path));
    

     

    Answered on January 11, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.