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}/ } } } }