Unsolved How to send messages or data to a running C program from Qt GUI?
-
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.
-
That example page might give you an idea.
-
@JoeCFD Does this C application expect data from stdin or via IPC?
-
Thanks for you reply. IPC
-
@koahnig thanks
-
@JoeCFD Which one? There are different IPC methods.
-
@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
-
@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