Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QVBarModelMapper does not update BarChart on Model change
Qt 6.11 is out! See what's new in the release blog

QVBarModelMapper does not update BarChart on Model change

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 826 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.
  • O Offline
    O Offline
    oliverleo
    wrote on last edited by
    #1

    Hi,

    I am using QVBarModelMapper to show a BarChart. I provided my own implementation of QAbstractTableModel.
    But the BarChart does not update, when the data in the TableModel changes allthough dataChanged() is emitted.
    What do I have to do to automatically update the BarChart, when the model changes?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      can you post your custom model code? the setData part in particular

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • O Offline
        O Offline
        oliverleo
        wrote on last edited by
        #3

        I aldready fixed it. The dataChanged() call was wrong. Thanks for your respond

        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