Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to delete qml object from Qt slot?



  • Hi,

    My application has mixed with QML & Qt. Launching heap based QQuickView object from Qt Slot. How to gracefully delete the QQuickView object when use click on close button ('X' button next to minimize/mazimize/restore) QML screen. Any inputs.

    Thanks.


  • Moderators

    Hi

    Pass the parent object to QQuickView and it will be deleted on quit.


Log in to reply