blob: 3bf765a29da0bf42d248706dd940a5ad81b08854 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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"
}
}
}
}
|