We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2016-06-17 15:22:38 +0200 |
I have a few SilicaListViews in my QML app with a bunch of ListItems each. I'd like to completely disable user clicks on one ListView, and only enable clicks for a few ListItems of another ListView. How to do that properly in QML? I've tried to use MouseArea, but I suppose I don't use it the right way. I can disable the ListItem highlighting (when clicked) and enable clicks, or enable highlighting and disable clicks -- both are the wrong combination :-) I'd like to disable both clicks and highlighting on user's touch event; and also enable touch event with ListItem highlighting effect, to indicate which ListItem the user clicked on.
I have a few SilicaListViews in my QML app with a bunch of ListItems each. I'd like to completely disable user clicks on one ListView, and only enable clicks for a few ListItems of another ListView. How to do that properly in QML? I've tried to use MouseArea, but I suppose I don't use it the right way. I can disable the ListItem highlighting (when clicked) and enable clicks, or enable highlighting and disable clicks -- both are the wrong combination :-) I'd like to disable both clicks and highlighting on user's touch event; and also enable touch event with ListItem highlighting effect, to indicate which ListItem the user clicked on.