diff options
| author | Venu <venugopal.shivashankar@digia.com> | 2014-03-06 16:53:40 +0100 |
|---|---|---|
| committer | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2014-06-27 12:30:40 +0200 |
| commit | 58c5f54f0b772a424c60a8e5184eaf698e744c9a (patch) | |
| tree | 78dd541ef330ca522b34684f8530037f68a71bea /src/controls/TextField.qml | |
| parent | c76b9478be9c6aab13bcd8e237db12dec080841e (diff) | |
Doc: Added images and missing snippets
Task-number: QTBUG-33799
Change-Id: I582518a73276d47cf63cf31411b5176a90acab6f
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/TextField.qml')
| -rw-r--r-- | src/controls/TextField.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index 32992b735..58498f13e 100644 --- a/src/controls/TextField.qml +++ b/src/controls/TextField.qml @@ -49,11 +49,19 @@ import QtQuick.Controls.Private 1.0 \ingroup controls \brief Displays a single line of editable plain text. + \image textfield.png + TextField is used to accept a line of text input. Input constraints can be placed on a TextField item (for example, through a \l validator or \l inputMask). Setting \l echoMode to an appropriate value enables TextField to be used for a password input field. + \qml + TextField { + placeholderText: qsTr("Enter name") + } + \endqml + You can create a custom appearance for a TextField by assigning a \l {QtQuick.Controls.Styles::TextFieldStyle}{TextFieldStyle}. |
