I'm creating Tabs 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 Tabs 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
Tabinherits fromLoaderwith itsactiveproperty set tofalseuntil theTabis clicked. Just explicitly set theactiveproperty after creating it: