Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › best way to modify a var hashmap property

Viewing 1 post (of 1 total)
  • Author
  • #23565



    i have a property in the root QML let say:

    property var g_data : ({})

    Then i have some functions that will add data to g_data and is triggered from external TCP connections
    The data contains user data that is added with a key and some object data as value like this:

    if( topqml.g_data[clientid] === undefined ) {
       topqml.g_data[clientid] = {}
       topqml.g_data[clientid]["loggedon"] = true;

    so the data gets initialised.

    and then multiple clients start to insert data during connection, so the g_data is growing.

    the g_data is also send to another client via TCP and displayed there with a frequent interval.


    my question is this a safe way of manipulating data asynchronusly, or is there a safer/better way to do this?

    Thanx in advance,







Viewing 1 post (of 1 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded