Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Remote Object read PROP not working ... only onChange



  • Hi guys,

    I'm doing first steps with QtRemoteObjects right now.
    While a signal-slot communication is working I have problems with PROPs.
    For an easy test I added

    PROP(int testValue);
    

    to my rep file.
    On my simpleSource I call setTestValue(2) on startup.
    On my replica I call on startup:

    qDebug() << m_rptr.data()->testValue();
    

    I would expect an output of "2" but it's zero.
    It seems that props are only exchanged on notification not on demand.

    THX
    mts


Log in to reply