There is an apparent problem in certain cases where using outer context to fetch ids is invalid: the outer context is the *outermost* context, meaning that if a type has a derived type in another QML document, the derived type would place its own context as a QQmlData::outerContext As a simpler solution, just remember the document's context in all the objects within this document. This automatically works in derived types since they appear in other documents with separate contexts Pick-to: 6.4 Fixes: QTBUG-103956 Change-Id: I29420ff4962b485502d87b2d2ac2f89b9e0f5736 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> |
||
---|---|---|
.. | ||
QmltcTests | ||
BLACKLIST | ||
CMakeLists.txt | ||
nameconflict.cpp | ||
nameconflict.h | ||
tst_qmltc.cpp | ||
tst_qmltc.h |