Search code examples
c++qtmoc

Can we implement multiple QtRO interfaces in the same object?


It's all in the question.

I am wondering if we can implement multiple QtRO (Qt remote objects) interfaces in the same object. And then in the client side acquire a replica of the part we need of the server object.


Solution

  • For the ones who wondered, we can't inherit multiple interfaces because of the QObject inheritance limitation, but we can remote multiple object with same host node. Then in the client side you acquire the wanted interface for the node.