Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. Como usar comandos do linux no QtCreator?

Como usar comandos do linux no QtCreator?

Scheduled Pinned Locked Moved Solved Portuguese
3 Posts 2 Posters 1.1k 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.
  • M Offline
    M Offline
    MSDiLieto
    wrote on last edited by
    #1

    ola', estive programando esses meses para criar um menu. E agora, ao finaliza-lo, queria saber como consigo usar os comandos do linux n programa, como: button "apply"; button "reboot"; button "force reboot" etc..

    ODБOïO 1 Reply Last reply
    0
    • M MSDiLieto

      ola', estive programando esses meses para criar um menu. E agora, ao finaliza-lo, queria saber como consigo usar os comandos do linux n programa, como: button "apply"; button "reboot"; button "force reboot" etc..

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @msdilieto hi

      QProcess *process = new QProcess(this);
      QString linuxCommandScript= "script.sh";
      process->start(linuxCommandScript);

      1 Reply Last reply
      2
      • M Offline
        M Offline
        MSDiLieto
        wrote on last edited by
        #3

        Thank you @LeLev
        It worked out thanks for the help!

        1 Reply Last reply
        0

        • Login

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