Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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?


  • Qt Champions 2019

    @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