Hi everyone!
Maybe my question is stupid but I can’t understand how works QML properties with memory. I have the C++ object which has pointer to object as field:
Q_PROPERTY(MslElement* newElement READ getNewElement NOTIFY newElementChanged)
//Getter
inline MslElement* getNewElement(){return m_newElement;}
//private class field
private:
MslElement* m_newElement;
The question: When I try to use this property like this:
property MslElement propertyElement: appRoot.manager.newElement
new object propertyElement will have a pointer to source object or it will be a new copy of source object.
Thanks for the help.
P.S. Where I can find some books or tutorial for memory management? Thanks.
↧