Thanks for the tip.
I have an application which display signals using the Graphics/View Framework.
All my item inherits from QGraphicsPolygonItem or QGraphicsRectItem.
I wanted to add a Time/Frequency representation of some signals into another graphicsItem.
So I used a QGraphicsRectItem, and add a widget in it to plot that representation (a QwtPlot with a QwtSpectrogram attached to it).
I found that the only way to do that is by using QGraphicsProxyWidget.
It seems that mouse press and mouse release events are coming succesfully to my QGraphicsProxyWidget's child as I reimplemented a derived class to check that.
Normally, events come from view, by the scene, by the graphics widget if any, and then to QgraphicsItem and its children.
So the QwtPlotPicker receives mousePress but no mouseRelease events. Somewhere between QGraphicsProxyWidget and QwtPlotPicker the event is consumed and not transmitted, but where :
QwtPlot, QwtSpectogram ?
My GraphicsItem also accept hover events, could this be the cause of my issue?
Regards




Reply With Quote
Bookmarks