destructor of QskWindow fixed hen one toplevel item is destroying
another
This commit is contained in:
parent
2500f5c8c4
commit
6e724b465c
@ -11,6 +11,7 @@
|
||||
|
||||
#include <QtMath>
|
||||
#include <QOpenGLFramebufferObject>
|
||||
#include <QPointer>
|
||||
|
||||
QSK_QT_PRIVATE_BEGIN
|
||||
#include <private/qquickitem_p.h>
|
||||
@ -128,7 +129,7 @@ QskWindow::~QskWindow()
|
||||
// unefficient way, leading to lots of QQuickItem::ItemChildRemovedChange
|
||||
// depending operations. So let's remove the toplevel children manually.
|
||||
|
||||
QList< QQuickItem* > items;
|
||||
QVector< QPointer< QQuickItem > > items;
|
||||
|
||||
const auto children = contentItem()->childItems();
|
||||
for ( auto child : children )
|
||||
|
Loading…
x
Reference in New Issue
Block a user