QGraphicsItem over QChart
Unsolved
General and Desktop
-
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?