How to recursively create a directory in Qt ?

How to recursively create a directory in Qt ?

Asked on January 9, 2019 in Qt.
Add Comment


  • 1 Answer(s)

    By recursively create a directory in Qt:

    bool QDir::mkpath(const QString &dirPath) const
    
    

    Click this link  Qt4.x documentation and Qt5.x documentation

    •  Build  the directorypath dirPath.
    • By creating the function  all parent directories are necessary to create the directory.
    •  By returning the  true if successful or else its returns false.
    •   Already the path is exists the  function will called by return true.
    Answered on January 9, 2019.
    Add Comment


  • Your Answer

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