qt6-bb10/qtdeclarative/tests/auto/quick/qquickitem2/data/focusInScopeChanges.qml

32 lines
664 B
QML

import QtQuick
Item {
id: main
objectName: "main"
width: 800
height: 600
FocusScope {
objectName: "focusScope"
Column {
Rectangle {
id: rectangle
focus: true
objectName: "rect"
width: textInput.width
height: textInput.height
border.width: 1
onActiveFocusChanged: textInput.forceActiveFocus()
}
TextInput {
id: textInput
objectName: "textInput"
font.pixelSize: 40
text: "focus me"
}
}
}
}