Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QProcess

    General and Desktop
    2
    2
    845
    Loading More Posts
    • 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.
    • S
      S.ANAND last edited by

      say
      @
      Qprocess process;
      process.start("a.exe");
      processa.waitforfinished(1000);
      @
      the above code waits 1 sec and the a.exe is not completly executing it is aborting at middle if i increased the time to 30 sec the a.exe is executing but if it takes less than 30 secs say 15 secs the gui is locking up (i.e, not respoinding) so ho can i wait exactly for the process to finish

      Please rply

      1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        • Listen for the finished() signal, or
        • process.waitForFinished(-1)

        Read this: http://qt-project.org/doc/qt-5.0/qtcore/qprocess.html

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 0
        • First post
          Last post