How to Add QGraphicsScene QDialog ?
-
Inside the QDialog is a QWiget that shows coordinates and pictures.
Since QDialog inherits QWidget,
To add this Dialog to QGraphicsScene,I did QGraphicsScene-> addWidget (QDialog).
The QWidgets that were previously in the QDialog are shown separately where the scene moved.
QDialog is displayed on the screen separately, but there is nothing inside.How can I show Dialog as item normally?
-
Inside the QDialog is a QWiget that shows coordinates and pictures.
Since QDialog inherits QWidget,
To add this Dialog to QGraphicsScene,I did QGraphicsScene-> addWidget (QDialog).
The QWidgets that were previously in the QDialog are shown separately where the scene moved.
QDialog is displayed on the screen separately, but there is nothing inside.How can I show Dialog as item normally?