QChart On Click Signal?
-
Hi,
I am looking for an OnClick signal for QChart (or something in the ballpark). I have done it with a pie chart on the individual slices.
I want to expand the size of the entire chart when clicked, so it doesn't make sense to do on an individual series or item on the chart.Does a signal like this exist?
Thanks,
-MrShawn -
Hi
Since QChart is QGraphicsWidget, maybe just subclass it and
add
void mousePressEvent(QGraphicsSceneMouseEvent *event);I have not seen such signal but on other hand, i have not used QChart
very much.If subclassing is not optimal, a event filter might work.
-
Thanks for the response...
Still pretty new to QT been at it a few weeks now when I get the time. Subclassing seems a little much for me right now I just added an event filter for the mousebuttonpress and it does seem to recognize my clicks.
This should be what I need to move forward on my implementation.
Thank you much.