How to invoke sofa in another Qt application and achieve two-way communication #5778
-
|
I hope to activate the sofa process in another Qt application(MITK) by clicking a button or other methods. Through research, I learned that QProcess in Qt might be able to start the sofa process, and communication between processes might be possible through QLocalServer and QLocalSocket. I would like to ask if the above method is feasible. If it is, what necessary parameters should I pass when the process is invoked and communicating with the process? Besides, may I ask if there are any other more recommended methods? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @Cao-Ding-Yu I am no expert in communication through QLocalServer, all I know is that we have examples of client & server classes offering a SOFA oriented API using RPyC here: https://github.com/sofa-framework/SofaPython3/tree/master/examples/RPYC Maybe @fredroy or @remibessard worked on similar topics some time ago |
Beta Was this translation helpful? Give feedback.
Hi @Cao-Ding-Yu
I am no expert in communication through QLocalServer, all I know is that we have examples of client & server classes offering a SOFA oriented API using RPyC here: https://github.com/sofa-framework/SofaPython3/tree/master/examples/RPYC
Maybe @fredroy or @remibessard worked on similar topics some time ago