QProgressBar attached to QGraphicsItem
Solved
Qt 6
-
@black_gay
Unless somebody knows better: I would have thought you would need a QGraphicsProxyWidget. From https://doc.qt.io/qt-5/qgraphicswidget.html#details:Note: QWidget-based widgets can be directly embedded into a QGraphicsScene using QGraphicsProxyWidget.
Then maybe you can make that a child of your (separate?)
QGraphicsItem
, or use aQGraphicsItemGroup
? Or if you mean theQProgressBar
is to be the wholeQGraphicsItem
, i.e. not a separate "attachment", all you will need is theQGraphicsProxyWidget
.