About switching pages in a ListView
Hi,
I made a ListView that contains 3 rectangles (pages) & they are flicked horizontally, a rectangle is shown at a time & the view switches between them using a button,
I want to know how to prevent the user from switching between them by pressing & dragging pages (he can only go to another rectangle by pressing the button)
Thanks,
Re: About switching pages in a ListView
You could try setting the [B]interactive[/B] property to false. ListView inherits Flickable and this property of flickable disables dragging and flicking.
[QUOTE]
interactive: bool
This property describes whether the user can interact with the Flickable. A user cannot drag or flick a Flickable that is not interactive.
By default, this property is true.
This property is useful for temporarily disabling flicking. This allows special interaction with Flickable's children; for example, you might want to freeze a flickable map while scrolling through a pop-up dialog that is a child of the Flickable.[/QUOTE]
That's from: [URL="http://doc.qt.nokia.com/4.7/qml-flickable.html#interactive-prop"]http://doc.qt.nokia.com/4.7/qml-flickable.html#interactive-prop[/URL]
Re: About switching pages in a ListView
Thank u very much bluechrism, it works.