On 2019-07-17 10:15, Patrick Stinson wrote:
Hello!

Surely there must be a way to set a context property on a single
component without having to set it globally on the entire QQmlEngine?
Indeed, the QQmlContext documentation is silent on this point.

Help??

Hi,


You can create a child QQmlContext via this constructor [1], and then pass it to QQmlComponent::create()



[1] - https://doc.qt.io/qt-5/qqmlcontext.html#QQmlContext-1

Regards,
--
Sérgio Martins | sergio.mart...@kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to