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. [Solved]Process open program
Qt 6.11 is out! See what's new in the release blog

[Solved]Process open program

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    toho71
    wrote on last edited by
    #1

    Is there a simple way to get an answer to my process if I do like this

    @process.start("xpdf " + f + " -g 800x600+0+0");@

    I tried process.started but no good.
    I think that I have see something like this somewhere

    @replay=process.start("xpdf " + f + " -g 800x600+0+0");@

    But I'm not sure

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      The above method start a process asynchronously. You may need use "QProcess::waitForStarted":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#waitForStarted

      Also I think for you the best is to use the static functions of QProcess class:
      "execute":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#execute or
      "startDetached":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#startDetached-2

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toho71
        wrote on last edited by
        #3

        Thank you thats what I needed

        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