Last active
July 1, 2019 04:43
-
-
Save stephenquan/e94e9164ddec3455465eb16e9109fbf6 to your computer and use it in GitHub Desktop.
AppStudio_20190703_InputMaskTest.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
TextField { | |
inputMask: "999-AAA" | |
placeholderText: qsTr("Type in a license plate of the pattern 999-AAA") | |
text: "123-XYZ" | |
color: acceptableInput ? "green" : "red" | |
selectByMouse: true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment