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. How to send messages or data to a running C program from Qt GUI?
Forum Updated to NodeBB v4.3 + New Features

How to send messages or data to a running C program from Qt GUI?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 852 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by aha_1980
    #1

    I use QProcess to launch a C executable and am able to get stdout output from this C code. Now I want to send some info from my QtGui code to the running C code. How do I do it? Thanks in advance.

    K jsulmJ 2 Replies Last reply
    0
    • JoeCFDJ JoeCFD

      I use QProcess to launch a C executable and am able to get stdout output from this C code. Now I want to send some info from my QtGui code to the running C code. How do I do it? Thanks in advance.

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

      @JoeCFD

      That example page might give you an idea.

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

      JoeCFDJ 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        I use QProcess to launch a C executable and am able to get stdout output from this C code. Now I want to send some info from my QtGui code to the running C code. How do I do it? Thanks in advance.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @JoeCFD Does this C application expect data from stdin or via IPC?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          Thanks for you reply. IPC

          jsulmJ 1 Reply Last reply
          0
          • K koahnig

            @JoeCFD

            That example page might give you an idea.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #5

            @koahnig thanks

            1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              Thanks for you reply. IPC

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JoeCFD Which one? There are different IPC methods.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              JoeCFDJ 1 Reply Last reply
              0
              • jsulmJ jsulm

                @JoeCFD Which one? There are different IPC methods.

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                @jsulm said in How to send messages or data to a running C program from Qt GUI?:

                @JoeCFD Which one? There are different IPC methods.

                FIFO

                jsulmJ 1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @jsulm said in How to send messages or data to a running C program from Qt GUI?:

                  @JoeCFD Which one? There are different IPC methods.

                  FIFO

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @JoeCFD There is nothing special for that in Qt as it is actually file IO.
                  See https://stackoverflow.com/questions/3861948/how-do-i-read-a-fifo-named-pipe-line-by-line-from-a-c-qt-linux-app

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  5

                  • Login

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