Dnia 2014-07-23, śro o godzinie 09:23 +0600, Dmitriy Purgin pisze: > QML did somehow destroy my object
Are you aware of QQmlEngine::ObjectOwnership [1]? "QML uses a heuristic to set the default object ownership. By default, an object that is created by QML has JavaScriptOwnership." "Objects not-created by QML have CppOwnership by default. The exception to this is objects returned from C++ method calls;" As with any heuristic, your object might get "suddenly" destroyed if it does not have parent() after passing to QML, unless you set CppOwnership explicitly. [1] http://qt-project.org/doc/qt-5/qqmlengine.html#ObjectOwnership-enum -- Tomasz Sterna :(){ :|:&};: Instant Messaging Consultant Open Source Developer http://abadcafe.pl/ http://xiaoka.com/portfolio
signature.asc
Description: This is a digitally signed message part
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org