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

QQuickWindows::closing should be available with no parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.6.0
    • Quick: Other
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated: