SwipeView QML Type
Enables the user to navigate pages by swiping sideways. More...
|Import Statement:||import QtQuick.Controls|
|Since:||Qt Quick Ultralite 1.0|
SwipeView provides a swipe-based navigation model.
SwipeView is populated with a set of pages. One page is visible at a time. The user can navigate between the pages by swiping sideways. Notice that SwipeView itself is entirely non-visual.
As shown above, SwipeView is populated with a static set of pages that are defined inline as children of the view.
Note: SwipeView takes over the geometry management of items added to the view. Using anchors on the items is not supported, and any
height assignment is overridden by the view. Notice that this only applies to the root of the item. Specifying width and height, or using anchors for its children works as expected.
See also Controls Styling.
[read-only] count : int
currentIndex : int
This property holds the index of the currently visible item. It can be used to automatically scroll to a particular page.
See also currentItem.
[read-only] currentItem : Item
This property holds the currently visible item.
See also currentIndex.
interactive : bool
This property describes whether the user can interact with the SwipeView. The user cannot swipe a view that is not interactive.
The default value is
orientation : enumeration
This property holds the orientation.
void setCurrentIndex(int index)
Available under certain Qt licenses.
Find out more.