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

QQuickWindows::closing should be available with no parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.6.0
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Labels:
      None

      Description

      Trying to

      connect(window, &QQuickWindow::closing, myOb ject, &MyObject::receiver);
      

      produces:

      /usr/include/qt5/QtCore/qmetatype.h:1370:27: error: invalid application of 'sizeof' to an incomplete type 'QQuickCloseEvent'
              Q_STATIC_ASSERT_X(sizeof(T), "Type argument of Q_DECLARE_METATYPE(T*) must be fully defined");
                                ^~~~~~~~~
      

      The close event type is not public (and a request to change that has been closed as invalid, see #36453), so there is not much reason to deal with it from a C++ point of view and the event should be available with a close-event-less flavor.

      See
      https://bugreports.qt.io/browse/QTBUG-36453?focusedCommentId=271999&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-271999

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-55722
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              mkuhn Matthias Kuhn
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes