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. Repeater is not refreshed after changing model

Repeater is not refreshed after changing model

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 5.3k Views 1 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.
  • I Offline
    I Offline
    ivanovaos
    wrote on last edited by
    #1

    I use repeater for creating charts. I created a plugin on C++ for drawing lines in this charts and by click on button I am calling javascript function that updates repeater's model. But I can not see any update of the sreen with chart.

    What can be wrong?

    Thank you for your help!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      srikanth_trulyit
      wrote on last edited by
      #2

      A skeleton code will be helpful to provide a solution. By the way, try property binding on model property.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ivanovaos
        wrote on last edited by
        #3

        I have already find the answer and this thread was helpful : http://developer.qt.nokia.com/forums/viewthread/4939

        I find that it's not a problem of Repeater QML Element. I is bug of mine custom Line Element. Then i am set start and end points of line I am do not set width and hieght and so QDeclarativeItem’s boundingRect do not know what area needs to be repainted when update() is called for the element.
        I find two ways to fix this
        1 (good) set width and height
        2 (evil) call setViewportUpdateMode(QGraphicsView::FullViewportUpdate) somethere

        Thank you, srikanthsombhatla, anyway!

        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