running apt-get by using Qt (QProcess)

  • Hello
    I want to install and run some shell script by using Qt and make a Ubuntu Desktop Application.
    now I use:

        QProcess process;
        process.startDetached("bash /home/root_enable");

    But I don't see terminal to enter Y/n and other command.
    How can I fix this problem?

    my root_enable is:

    sudo apt-get install vim

  • Moderators

    @aghict said:

    But I don't see terminal

    Hi! That's because bash isn't a terminal emulator but a command line interpreter. A common terminal emulator on desktop Linux is for example KDE's Konsole.

  • How can I fix this problem?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.