<div dir="ltr"><div dir="ltr"><div>Dear all,</div><div><br></div><div>I understood how to use a struct / simple class as a parameter of a signal / slot, and it works well by value.</div><div><br></div><div>However as soon as we have to declare the type for QML, it is not good anymore.</div><div>It seems that it must be derived from QObject and passed by pointer.</div><div><br></div><div><div style="background:none;font:400 13.33px/19.99px Arial,Helvetica,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1596px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal"><div>Do I understand well that the QML world does only accept pointers on QObject?</div><div><br></div></div></div><div>However I don't understand, who owns the pointer of the custom class (derived from QObject) and who actually deletes it?</div><div>(I tried a sharepointer but QML does not know how to handle it)</div><div><br></div><div>Do you have any idea?</div><div><br></div><div>Best regards,</div><div>Sylvain<br></div><div><br></div><div><br></div></div></div>