I'm creating Tab
s in a TabView
dynamically via
var component = Qt.createComponent("file://tabcontent.qml"));
tabView.addTab(component);
However their code is not executed before I click on the Tab
itself.
How can I solve this?
I'm creating Tab
s in a TabView
dynamically via
var component = Qt.createComponent("file://tabcontent.qml"));
tabView.addTab(component);
However their code is not executed before I click on the Tab
itself.
How can I solve this?
The created
Tab
inherits fromLoader
with itsactive
property set tofalse
until theTab
is clicked. Just explicitly set theactive
property after creating it: