Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Memory management in Qt Quick

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles