Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Using QProcess for launching linux commands



  • Hello everybody, I am developing a project using Qt Creator 3.0.1(based on Qt 5.2.1) for a Renesas RZ/A1H board. The board itself runs on linux kernel 3.14. I wish to launch a system command(such as mkdir, ls etc) from a Qt application, however during compilation of the Qt project I always get this error

    QProcess was not declared in this scope
    

    even though I specified in mainwindow.c

    #include <QProcess>
    

    Any help would be much appreciated.


  • Lifetime Qt Champion

    @danmar94 you need to verify that your Qt was build with QProcess support. It might be disabled in the configuration when Qt was built.


Log in to reply