can i draw Text in QGraphicsItem in order to make QGraphicsItem look like QLable?
-
can i draw Text in QGraphicsItem in order to make QGraphicsItem look like QLable?
i want to make QGraphicsItem enable to show (1)Text, (2)Image, (3)OpenGL/Direct3D scene.
is QGraphicsItem a good way to do this?
if not, which ui control should i use?
thank you -
You could use QGraphicsProxyWidget to embed a QWidget into your scene
-
thankyou , i used it, i know it can embed any widget into the QGraphicsView.
but i don't whether it is the best way to do this. -
@opengpu2 said:
but i don't whether it is the best way to do this.
You can create your custom GraphicsItem (for example composed by a rectangle and a Text Items)