Questions tagged [qtremoteobjects]
27 questions
4
votes
1 answer
Is it possible to get a return value from a QRemoteObject Dynamic Replica slot?
I am unable to call a slot returning a value on a QRemoteObjectDynamicReplica.
It seems that InvokeMethod on Replica doesn't support return value.
I have only succeeded in calling void returning slots and even in this case, in DirectConnection mode,…

Daes
- 81
- 8
2
votes
0 answers
Linker error because of unresolved symbols from QtRemoteObjects replica definitions
I am working on the project which uses Qt Remote Objects and I wanted to test one of my components using auto-generated ReplicaDefSimpleSource class (see the example below for the details). However, when I tried to link test executable with my…

pptaszni
- 5,591
- 5
- 27
- 43
2
votes
1 answer
What's different QRemoteObjectRegistryHost and QRemoteObjectHost?
I am new to learn QRemoteObjects, i understand usage of Direct Connection with a Dynamic Replica.But i don't understand Connections to Remote Nodes using a Registry mechanism.I got confused the relationship between QRemoteObjectRegistryHost,…

jett chen
- 1,067
- 16
- 33
2
votes
1 answer
Got "Dynamic metaobject is not assigned" while run QtRemoteObjects
I try to use QRemoteObjects to share more than two objects but
i got "Dynamic metaobject is not assigned" warning while run client.py example, and i can't find out what happened, my example work fine, can anyone give me some advices?
server.py
from…

jett chen
- 1,067
- 16
- 33
2
votes
1 answer
Make Peer-to-Peer communication on Qt Remote Objects
I want to make simple communication example on Qt Remote Objects. I want to make the communication peer-to-peer, therefore I'm trying to merge both Source and Replica of the same remote object functionality in one application (REPC_MERGED tool used…

Vladimir Bershov
- 2,701
- 2
- 21
- 51
1
vote
1 answer
QRemoteObject Tcp example
I'm trying to follow the External QIODevices examples, but it's missing to demonstrate how the srcNodes are being enabled and the replicas acquired.
I cant get the first example working, I tried:
.rep
class RemoteObject
{
SLOT(void test(QString…

Cesar
- 41
- 2
- 5
- 16
1
vote
1 answer
How to use the QRemoteObject class to share data between processes?
I'm trying to follow the Qt Remote Objects example, and I wrote a small example using Qt 6.3.
The code for the server is compiling, but the code of the client process does not compile, and I'm getting this error:
Error C2661 …

Cesar
- 41
- 2
- 5
- 16
1
vote
0 answers
Qt Remote Object - Do some requests at same time to a server
I use the qt remote object to transfer data between my server and my client. When my client do two calls at the same time to my server, my server it's not able to respond two response at the same time.
In my server, I have this code :
AService…

Black7
- 11
- 1
1
vote
1 answer
Can Qt Remote Objects be used to share an entire mainwindow UI?
I'm currently looking into Qt RO as a possible solution for my current need to remotely access a UI without using Qt WebGL. I am having trouble finding any good example uses of Qt RO outside of the starter ones in the qt docs.
Will Qt RO fit my…

lostdev
- 23
- 2
1
vote
1 answer
Unable to connect using QML Remote Object with Error: "connectionToSource is null"
I am trying to use Qt Remote Objects for creating client server application.
But encountered an issue that says "connectionToSource is null". How do I set the source connection ?
I am creating the server using the .rep file. The code I had used is…

Ravi
- 179
- 3
- 14
1
vote
1 answer
Can I reuse QRemoteObjectNode?
I have to create a set of plugin manager, where plugin manager is a main process, child processes are plugins using Qt 5.13 and C++. All processes are created on a single PC. Each child process implements Source (in terms of Qt Remote Objects).
I'd…

ilya
- 1,103
- 14
- 36
1
vote
1 answer
How to manually repc Qt .rep to .h and then moc them to .cpp
I'm trying to manually calling repc on my .rep files then running moc on the header output files.
repc runs successfully, but moc randomly complains about a
parse error at '('
after a Q_CLASSINFO declaration. Any seen that issue before?
Example:…

bardao
- 914
- 12
- 23
1
vote
1 answer
QtRemoteObjects replicas being called for every single replica signal
I built a minimal source/replica direct connection QtRo system:
https://codeshare.io/29xj4V
What I would like to achieve is uniquely identify the message coming from the source to be a reply to the one sent from each of the replicas.
If rep1 sends…

bardao
- 914
- 12
- 23
1
vote
1 answer
Qt5 Remote Objects + custom type but not in POD
I would like to use loads of custom objects with Qt5 remote objects.
As I read they might not needed to be created as PODs in the .REP file.
I have tried to do the following:
namespace my::api {
class Card {
Q_GADGET
…

harsszegi
- 369
- 2
- 15
0
votes
1 answer
How to handle signals on QRemoteObject?
I'm a bit new to Qt, after reading this question I'm trying to learn more about QRemoteObject, following the mentioned question, comments, and links, I tried to write a class to share data between processes.
Based on the doc I build this .rep file…

Cesar
- 41
- 2
- 5
- 16