Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QVBarModelMapper does not update BarChart on Model change



  • 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?



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



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


Log in to reply