Custom QML Object creating error
Solved
QML and Qt Quick
-
Hi;
when ChQuSession create by application "Cannot assign to non-existent default property" error (*) occurs... if ChQuSessionController removed, it is ok.
ChQuSesion
{
id : chQuSessionChQuSessionController (*) { id : chQuSessionController }
}
class CChQuSession
: public QObject
, public QQmlParserStatus
{
Q_OBJECTQ_INTERFACES(QQmlParserStatus) . .. ...
};
class CChQuSessionController
: public QObject
, public QQmlParserStatus
{
Q_OBJECTQ_INTERFACES(QQmlParserStatus) . .. ...
};
..any idea ?
thanks !
-
Hi;
https://doc.qt.io/qt-5/qtqml-referenceexamples-properties-example.html#
this article explain everything, thnx !