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. ChartView LineSeries and model data

ChartView LineSeries and model data

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 207 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.
  • msauer751M Offline
    msauer751M Offline
    msauer751
    wrote on last edited by
    #1

    Hi,

    I my C++ / QML project I want to add a ChartView LineSeries with with data from my QAbstractTableModel class. I can view this data in a QML TableView object.
    How can I present this data in a line chart?
    Thank you for your help.
    BR
    martin

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bob64
      wrote on last edited by Bob64
      #2

      Have you looked at HXYModelMapper/VXYModelMapper? I haven't used these yet myself but from what I understand, they should fit with your use case.

      There is a widgets example here https://doc.qt.io/qt-6/qtcharts-modeldata-example.html, which might be adaptable to QML.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved