Update model data using python or qml
-
I am having difficulties updating the data of my application. I have to close open the app to see changes on the webserver. I'm not that good at programming so I've been googling my way till this point but I'm stuck.
Above is a snip of the application the values are what I need to update say every second.
Above is a snip of the code (main.qml left, main.py right). A NodeCard qml file is instanced in the main.qml and each nodecard's data is sent to it using the for loop.
I tried using while loop within the for loop in main.py but the programs doesn't launch (lags forever). I need help to tackle this. Thanks in advance.