Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. running apt-get by using Qt (QProcess)

running apt-get by using Qt (QProcess)

Scheduled Pinned Locked Moved Unsolved General and Desktop
apt-getubuntuqprocess
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aghict
    wrote on 4 Aug 2016, 16:43 last edited by aghict 8 Apr 2016, 16:47
    #1

    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");
        process.waitForFinished(-1);
    

    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
    
    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 4 Aug 2016, 18:17 last edited by
      #2

      @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.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        aghict
        wrote on 5 Aug 2016, 05:29 last edited by
        #3

        How can I fix this problem?

        1 Reply Last reply
        0

        1/3

        4 Aug 2016, 16:43

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved