aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput/data/signal_accepted.qml
blob: 94c113dd9fac69b7d9fa7d408b7aa8f43bdac51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQuick 2.2

Item {
    property QtObject input: input

    width: 800; height: 600;

    Column{
        TextInput { id: input;
            property bool acceptable: acceptableInput
            validator: RegExpValidator { regExp: /[a-zA-z]{2,4}/ }
        }
    }
}