blob: 0c81548dc004fcd11fe45dc8242a0e6bc9c84656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import Qt 4.7
Item {
property var intInput: intInput
property var dblInput: dblInput
property var strInput: strInput
width: 800; height: 600;
Column{
TextInput { id: intInput;
validator: QIntValidator{top: 11; bottom: 2}
}
TextInput { id: dblInput;
validator: QDoubleValidator{top: 12.12; bottom: 2.93; decimals: 2; notation: QDoubleValidator.StandardNotation}
}
TextInput { id: strInput;
//Requires QTBUG-8025 to be implemented first
//validator: QRegExpValidator { regExp: /[a-zA-z]{2,4}/;}
}
}
}
|