Skip to content

Instantly share code, notes, and snippets.

@stephenquan
Last active July 1, 2019 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenquan/e94e9164ddec3455465eb16e9109fbf6 to your computer and use it in GitHub Desktop.
Save stephenquan/e94e9164ddec3455465eb16e9109fbf6 to your computer and use it in GitHub Desktop.
AppStudio_20190703_InputMaskTest.qml
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