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

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

      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()));
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes