[Development] Missing documentation makes QML ListView unusable

Rainer Keller rainer.keller at digia.com
Mon Jan 28 09:36:39 CET 2013


Hi,

I tried to use a QML ListView and wondered why it does not react to mouse 
clicks. After looking into the examples I found out that you need to add a 
MouseArea in the delegate. Without this code the ListView is unusable because 
the user can not select anything using the mouse.

Shouldn't the MouseArea be the default behaviour without writing this code 
every time? Only if the user wants to do custom things he should need to 
override this.

The documentation seems to contain no statements about the MouseArea needed. 
This is essential for the usability and it should be mentioned in ListView the 
documentation at least.

Best regards,

Rainer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130128/3d8ada9d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.qml
Type: text/x-qml
Size: 620 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130128/3d8ada9d/attachment.bin>


More information about the Development mailing list