Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Remote Object read PROP not working ... only onChange
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 156 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    themts
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved