Important: Please read the Qt Code of Conduct -

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?

  • Lifetime Qt Champion

    @Pada_ Why do you want to put a QDialog into a QGraphicsScene?!
    A QDialog is a separate window, I don't see the point to add it to a QGraphicsScene.

Log in to reply