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 Example

QProcess Example

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.4k 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.
  • ModelTechM Offline
    ModelTechM Offline
    ModelTech
    wrote on last edited by
    #1

    As I am still a complete novice, I would like to ask whether somebody is able to point me to example source code of a program that I can access with QProcess in my application. So, I would like source code of both sides of the inter-process communication story, showing at least synchronous and asynchronous exchanges and with/without replies. If you have example code that shows one or more of these things, please let me know.

    K 1 Reply Last reply
    0
    • ModelTechM ModelTech

      As I am still a complete novice, I would like to ask whether somebody is able to point me to example source code of a program that I can access with QProcess in my application. So, I would like source code of both sides of the inter-process communication story, showing at least synchronous and asynchronous exchanges and with/without replies. If you have example code that shows one or more of these things, please let me know.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @ModelTech

      For communication between applications the network examples come to mind. You could use QProcess to start the other program, if you really like.

      Otherwise your request is quite specific and I do not believe that you have much chances to get an example like that. In general interprocess communication is more diverse than simply packing into some example application. The networking stuff is for sure a way for communication you can use between processes. Otherwise there are also possibilities to use QSharedMemory or eventually QLocalSocket

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • ModelTechM Offline
        ModelTechM Offline
        ModelTech
        wrote on last edited by
        #3

        Thanks for the hint. I will look into those examples. A more generic question is now however: must the process that I start with QProcess interact through TCP/IP?

        K 1 Reply Last reply
        0
        • ModelTechM ModelTech

          Thanks for the hint. I will look into those examples. A more generic question is now however: must the process that I start with QProcess interact through TCP/IP?

          K Offline
          K Offline
          koahnig
          wrote on last edited by SGaist
          #4

          @ModelTech

          No. You are completely free to make your choice. You can use cout and teh pipes provided by QProcess or any other mean. Some examples are already given. For a starter I would not choose anything too elaborate, because the more complex things are the more one get confused.

          Vote the answer(s) that helped you to solve your issue(s)

          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