Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to update data from model to qml dynamically .
Forum Updated to NodeBB v4.3 + New Features

How to update data from model to qml dynamically .

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 152 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.
  • S Offline
    S Offline
    sush123
    wrote on last edited by sush123
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mammamia
      wrote on last edited by
      #2

      hey @sush123
      You are missing the signal to notify the QML

      void TimerModel::updateTime(int timeLeft, int timeFull , int status)
      {
        if(status == 1)
        {
          m_timeLeft = timeLeft;
          m_timeFull = timeFull;
          // notify the changes
          emit isTimeLeftValueChanged();
          emit isTimeFullValueChanged();
        }
      }
      

      hint: always try to use code blocks when you write your code for better readability.

      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