Connection between C++ and qml with parameters

  • Hi all,
    I am reading csv file and filling that data into list and map in the C++ class , i want to get to Qml for plotting data, how can it possible , please let me know.

    I am filling list with struct and map with key as int and value as list of class

    i want to get that list and map in the qml to plot charts.

  • you need to declare and register both Class and Struct and convert QMap into a QVariantMap

  • To add to what @VRonin said, have a look at Data Type Conversion Between QML and C++.

  • Moved to QML

    Given your need, have you considered inserting the data in a model instead?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.