Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73649

QQmlApplicationEngine connects Qt.quit() signal with AutoConnection

    XMLWordPrintable

Details

    • All
    • 1e3ed172f35abaa0e0af43ee22259bc3cd188ad8

    Description

      Class QQmlApplicationEngine connects Qt.quit() signal to QCoreApplication::quit() and
      QQmlApplicationEngine::exit() signal to QCoreApplication::exit(), but it does so with AutoConnection. This causes in some circumstances problems, which are described in Qt documentation.

      Qt documentation on QCoreApplication::exit(),

      "It's good practice to always connect signals to this slot using a QueuedConnection. If a signal connected (non-queued) to this slot is emitted before control enters the main event loop (such as before "int main" calls exec()), the slot has no effect and the application never exits. Using a queued connection ensures that the slot will not be invoked until after control enters the main event loop."

      Attachments

        Issue Links

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

          Activity

            People

              qdoc Michal Policht
              qdoc Michal Policht
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes