qmlbook / qt6book

The Qt 6 Book - A book about QML
https://www.qt.io/product/qt6/qml-book
Other
335 stars 110 forks source link

Two issues in Quick Starter / Input Elements #191

Open Samuel-Ghinet opened 2 years ago

Samuel-Ghinet commented 2 years ago

First, I tried the example with the FocusScope: with TLineEditV2.qml holding a TextInput I could not switch between the two line edits via the tab key -- but with TLineEditV2.qml holding a TextField it works.

The second one would be,

The TextEdit is very similar to TextInput, and supports a multi-line text edit field. It doesn’t have the text constraint properties, as this depends on querying the content size of the text (contentHeight, contentWidth).

Which are those "text constraint properties"? If it refers to,

TextInput allows the user to enter a line of text. The element supports input constraints such as validator, inputMask, and echoMode.

then, well, TextField has validator and inputMask and echoMode as well.