Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved QProcess Example

    General and Desktop
    2
    4
    1280
    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.
    • ModelTech
      ModelTech last edited by

      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 Reply Quote 0
      • K
        koahnig @ModelTech last edited by

        @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 Reply Quote 1
        • ModelTech
          ModelTech last edited by

          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 Reply Quote 0
          • K
            koahnig @ModelTech last edited by SGaist

            @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 Reply Quote 1
            • First post
              Last post