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. Working with QPainter and QCharts
Qt 6.11 is out! See what's new in the release blog

Working with QPainter and QCharts

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 532 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by tomy
    #1

    Hi dudes,

    In a Qt Widget app by QCharts and QLineSeries I drew this simple figure using numbers: 0 1 1 0 as the values of the Y axis (it's either 0 or 1):

    1.PNG

    What I need is a curved view not that straight one. I think I can use QPainter drawArch to work this out. But it's not easy nor do I know if there's any better method for that issue. Any ideas, please?

    1 Reply Last reply
    0
    • tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by
      #2

      How to use void QPainter::drawArc(...) on a QChart? For instance, to draw a few arches instead of those lines to have a curved wave on the QChart above?
      If we inherit a QWidget and set the chart as its central widget then how to map the arches on it?

      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