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. QProcess is not working in linux..
Forum Updated to NodeBB v4.3 + New Features

QProcess is not working in linux..

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 1 Posters 816 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.
  • K Offline
    K Offline
    karti gesar
    wrote on last edited by
    #1

    QProcess pingProcess;
    QString exec = "ping";
    QStringList params;
    params <<"www.google.com";
    pingProcess.start(exec,params,QIODevice::ReadOnly);
    pingProcess.waitForFinished(-1);
    QString p_stdout = pingProcess.readAllStandardOutput();
    qDebug()<<p_stdout;

    1 Reply Last reply
    0
    • K Offline
      K Offline
      karti gesar
      wrote on last edited by
      #2

      above is the code ..

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karti gesar
        wrote on last edited by
        #3

        QProcess pingProcess=new QProcess;

        1 Reply Last reply
        1

        • Login

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