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

qt6book/edit/main/docs/ch04-qmlstart/layout.md -- no definition of custom QML components `GreenSquare` and `BlueSquare` #205

Open zefreelance2012 opened 1 year ago

zefreelance2012 commented 1 year ago

Please excuse me and dismiss this issue if I'm wrong, but as far as I see qt6book/edit/main/docs/ch04-qmlstart/layout.md has no definition of custom QML components GreenSquare and BlueSquare.

I am guessing that these components are Rectangles which have a MouseArea with drag properties enabled. But I can't find any such definition on the page (or if I'm not wrong, on any other pages either).

This makes the entire page a little confusing (and perhaps a bit misleading too, especially to a person new to QML) because the reader has no idea what a GreenSquare or BlueSquare is. They might have questions like

But even if we somehow assume all this, the part which absolutely fails is the "Hidden Gems" section. One might ignore the questions asked above, but (without any definition) will have a very hard time figuring out how the "squares have been magically enhanced to enable dragging".

So I suggest:

If there's a way I can help expedite the process, please feel free to approach me. This is a great book and I'm highly interested in helping to make it even better. 😊