Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to signal qt application
I am launching a Qt GUI Application using QProcess from some other Qt core application.
How can I signal my Qt GUI application?
Currently I am using event in windows and signals in Linux to signal Qt GUI , but I wanted to write portable code.
lgeyer last edited by
Take a look at "Inter-Process Communication in Qt":http://developer.qt.nokia.com/doc/qt-4.8/ipc.html or "QtSingleApplication":http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtsingleapplication, which has a "message passing mechanism":http://qt.gitorious.org/qt-solutions/qt-solutions/blobs/master/qtsingleapplication/src/qtlocalpeer.h too.
Just follow the ":ipc":http://developer.qt.nokia.com/search/tag/ipc.
I am currently using QSharedMemory , but this is for data passing , it doesnot have signalling mechanism. , However I tried to use QLocalSocket, and QTcpSocket, it works well in windows but giving me problem in Linux machine.
My architecture is like this.
I have one third party linux application , that loads my qt dll. from this Qt dll , I will call my own written Qt GUI application.
I am running QLocalServer/QTcpServer in my Qt GUI application, and from Qt dll , I wanted to communicate with Qt GUI.
In Linux I am just able to connect to GUI app's QTcpServer/QLocalServer , but not able to send the data.
In windows it works well.
I checked the return value of write function from dll, it is giving return value correctly.
Only thing is in my Qt GUI app, I am not getting readyRead() signal.