Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2140

Embedded QML Standalone demos should connect QDeclarativeEngine::quit() signal to QApplication::quit() slot

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • Quick / QML Support
    • None

    Description

      Calling Qt.quit() in QML does not automatically result in application exiting, but by default just emits signal QDeclarativeEngine::quit(). C++ application developers are free to implement the application exit how they please (QML application exit does not necessarily mean process exit in all environments). For Embedded QML Standalone demos, calling Qt.exit() in QML should result in a call to QApplication::quit().

      QObject::connect(view.engine(), SIGNAL(quit()), &application, SLOT(quit()));
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes