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
QtWS25 Last Chance

QProcess

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • S Offline
    S Offline
    S.ANAND
    wrote on last edited by
    #1

    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
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2
      • 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
      0

      • Login

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