Enables the user to navigate pages by swiping sideways. 更多...
|导入语句：||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.
SwipeView takes over the geometry management of items added to the view. Using anchors on the items is not supported, and any
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.
另请参阅 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.
另请参阅 currentItem .
interactive : bool
This property describes whether the user can interact with the SwipeView . The user cannot swipe a view that is not interactive.
orientation : enumeration
This property holds the orientation.
Flickable getFlickable ()
Gives access to the Flickable that is responsible for scrolling content.
void setCurrentIndex ( int index )