Hello, many thanks for the info, it seems to be the trouble! I'll check this out later.
Cheers 2014-07-23 12:29 GMT+06:00 Tomasz Sterna <to...@xiaoka.com>: > 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 > > > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org