Wrapping a QGraphicsItem/QGraphicScene in a QWidget for use in QT Designer as a plugin.
-
Hi QT Gurus,
Is it possible to wrap a QGraphicsItem/QGraphicScene as a QWidget for use in QT Designer as a plugin with mouse events.
It is easy to add a QWidget to to a QGraphicScene but is possible to add a QGraphicScene to a QWidget.
The purpose being to implement some basic drawing tools in the Designer.
I know it is possible to use QPainter in a QWidget to to this but I would like to use QGraphicsItem/QGraphicScene.
Is this possible?
-
As far as I know, it's not possible to do such a thing yet.
-
not sure if I understood you right, but isn't QGraphicsView also a widget?
-
QGraphicsView sounds like what you want...
-
Yep QGraphicsView worked great.
Thanks guys.