Re: [Interest] QML ObjectOwnership for List of QObjects

2017-12-10 Thread Oleg Evseev
For now I stopped at this solution: Create QObjectListModel class (QObject) that can setList(QList) saving list to private variable and doing parent all objects to *this*, and also getList() for QML. And in QML: ComboBoxCheck { property QObjectListModel listModel:

[Interest] QML ObjectOwnership for List of QObjects

2017-12-10 Thread Oleg Evseev
Hi all, Could someone explain QObject ownershiping aspects, please. According to http://doc-snapshots.qt.io/qt5-dev/qtqml-cppintegration-data.html when data is transferred from C++ to QML, the ownership of the data always remains with C++. The exception to this rule is when a QObject is returned