diff options
| author | Rami Potinkara <rami.potinkara@qt.io> | 2026-03-19 09:47:14 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2026-03-20 11:39:49 +0000 |
| commit | 776aff0f4f103998c2ed4a38e9365f2b234d8ae1 (patch) | |
| tree | 660568e0d0d35b9d7b9a8759239e4366aebdd118 | |
| parent | bd972077a2e200366befb4dd4cec046204dab76d (diff) | |
ContactList Example: change Number TextField to accept only digits
This patch simplifies Contactlist example Number TextField
input by allowing user only to type digits to there. This makes
the typing of the numbers faster.
Task-number: QTBUG-144803
Pick-to: 6.8
Change-Id: Id7d3fed33552c6780cd088d58b63dcc6d2d01b22
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit ddd5b83cade5ef46a335f4556cd93a1a19d5fffa)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit ec7843ec5154c7b555e59d9fb4913828c0e0d09a)
| -rw-r--r-- | examples/quickcontrols/contactlist/ContactForm.ui.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quickcontrols/contactlist/ContactForm.ui.qml b/examples/quickcontrols/contactlist/ContactForm.ui.qml index 56c9186194..7c878b551c 100644 --- a/examples/quickcontrols/contactlist/ContactForm.ui.qml +++ b/examples/quickcontrols/contactlist/ContactForm.ui.qml @@ -68,5 +68,6 @@ GridLayout { Layout.minimumWidth: grid.minimumInputSize Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline placeholderText: grid.placeholderText + inputMethodHints: Qt.ImhDigitsOnly } } |
