Hi everyOne
I have a mainWindow : Authentication.qml that contains an instance of User.qml and Admin.qml
Authentication.qmlCode:
Window{ id: root ... TextInputMod{ id: textinputmod1 focus: true ... } TextInputMod{ id: textinputmod ...} MouseArea{ ... onClicked: { if(change.text=="ADMIN") stackId.push(pageAdmin) if(change.text=="USER") stackId.push(pageUser) } StackView{ id: stackId ... Component { id: pageAdmin Admin{ } } Component { id: pageUser User{ } }
Authentication.qml contains a TextInputMod (custom model) : TextInputMod{ focus: true ... } ---> focus works well
but for User.qml and Admin.qml that contain also a TextInputMod : TextInputMod{ focus: true ... } ---> focus don't work
Why? Because stackView !!!
Any solution?
Cheers,