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

Qt.quit triggers Windows::closing signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9
    • None

    Description

      Calling Qt.quit triggers Windows::closing signal. Within the signal handler it's not possible to distinguish Qt.quit from user's attempt to quit app (like closing window or pressing alt+F4).

      According to docs:

      This signal is emitted when the user tries to close the window

      Programmatic call to Qt.quit probably shouldn't be considered as an user action. Moreover in Qt 5 Windows::closing was not called on Qt.quit. The behavior is changed but documentation stays the same.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            michalc Michał Cieślak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes