Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.7, 6.2.3
-
None
-
-
fd7a6eac6b (qt/qtdeclarative/6.2) 108eb261f8 (qt/qtdeclarative/6.3) 48b24f762f (qt/qtdeclarative/dev) fd7a6eac6b (qt/tqtc-qtdeclarative/6.2) 108eb261f8 (qt/tqtc-qtdeclarative/6.3) 48b24f762f (qt/tqtc-qtdeclarative/dev)
Description
I was reading the doc for the QML SpinBox, one of whose properties is a "validator." It turns out that there are different kinds of validators, but there is no comprehensive reference to them that I can find. This document says only: "By default, SpinBox uses IntValidator to accept input of integer numbers." But it doesn't provide a list or even mention the other validators.
Version 5 and 6 examples are (there may be other controls that use a validator too):
https://doc.qt.io/qt-5/qml-qtquick-controls2-spinbox.html#validator-prop
https://doc.qt.io/qt-6/qml-qtquick-controls2-spinbox.html#validator-prop
The docs for other validators that I found through a string search for "validator":
https://doc.qt.io/qt-6/qml-qtquick-doublevalidator.html
https://doc.qt.io/qt-6/qml-qtquick-regularexpressionvalidator.html
Attachments
Issue Links
- resulted in
-
QTBUG-101538 Pointless link to Qt Quick Text Validators page
- Closed
For Gerrit Dashboard: QTBUG-101402 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
399446,3 | Doc: make validator documentation more discoverable | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
399725,2 | Doc: make validator documentation more discoverable | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
399726,2 | Doc: make validator documentation more discoverable | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |