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. QGraphicsItem over QChart
Qt 6.11 is out! See what's new in the release blog

QGraphicsItem over QChart

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 332 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.
  • S Offline
    S Offline
    St.Stanislav
    wrote on last edited by
    #1

    Hello everyone!

    I have the following question: what is the most common (hopefully with best performance) practice to create and redraw QGraphicsItem on QChart? I have the following case: I need to paint some lines dynamically on the certain xy coordinates connected with certain QValueAxis. I scroll and change QChart range with recomputing min and max coordinates for the QValueAxis. Currently I try to use QGraphicsLineItem and setLine() method. Catch QValueAxis signal and repaint QGraphisLineItem with new coordinates (mapToPosition() QChart method). I have some graphical artifacts such as a drawing outside the axis and so on. Is there any good example of how I can do this?

    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