Wrapping a QGraphicsItem/QGraphicScene in a QWidget for use in QT Designer as a plugin.
General and Desktop
5
Posts
3
Posters
3.5k
Views
1
Watching
-
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?
-
not sure if I understood you right, but isn't QGraphicsView also a widget?