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

QQuickWindows::closing should be available with no parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.6.0
    • Quick: Other
    • None

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes