Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.6.0
-
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.
Attachments
Issue Links
- resulted from
-
QTBUG-31019 need a way to intercept closing of a Window in Qt Quick
- Closed
-
QTBUG-36453 QQuickCloseEvent class should be public
- Closed