Actually I have tried to go for embedding the painting widget into a QGraphicsProxyWidget, but tablet events are still not recognized. I suppose QGraphicsProxyWidget doesn't forwards them to the QWidget object, despite the documentation that claims
Through
QGraphicsProxyWidget, Graphics View is able to deeply integrate the client widget features including its cursors, tooltips, mouse,
tablet and keyboard
events
Now I really am confused.
Any help please
Thank you!
Added after 1 29 minutes:
OK, so after further research, it seems that, if I stick with the graphics view framework, I have to manually capture all the events that the QGraphicsView viewport recieves and somehow determine which one is generated by the tablet. Afterwards, I should translate this event into a custom subclass of QGraphicsSceneEvent while leaving any other scene event intact. Finally, the QGraphicsProxyWidget or QGraphicsItem item in my scene should be able to receive my custom event and process it.
Again, this approach is new to me so I'm not sure it would work.
So, as a summary to my 3 posts, what answer do I deserve?
Bookmarks