Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Update model data using python or qml
Forum Updated to NodeBB v4.3 + New Features

Update model data using python or qml

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 295 Views
  • 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.
  • 2 Offline
    2 Offline
    2MJay
    wrote on last edited by
    #1

    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.
    PLV app.png
    Above is a snip of the application the values are what I need to update say every second.
    PLV nodecard.png
    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.

    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