| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- import QtQuick
- import QtQuick.Controls
- import QtQuick.Layouts
- import QtQuick.Window
- import FluentUI
- import "../component"
- FluScrollablePage{
- title:"FlipView"
- leftPadding:10
- rightPadding:10
- bottomPadding:20
- spacing: 0
- FluArea{
- Layout.fillWidth: true
- height: 340
- paddings: 10
- Layout.topMargin: 20
- ColumnLayout{
- anchors.verticalCenter: parent.verticalCenter
- FluText{
- text:"水平方向的FlipView"
- }
- FluFlipView{
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_2.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_3.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- }
- }
- }
- CodeExpander{
- Layout.fillWidth: true
- Layout.topMargin: -1
- code:'FluFlipView{
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- }
- '
- }
- FluArea{
- Layout.fillWidth: true
- height: 340
- paddings: 10
- Layout.topMargin: 20
- ColumnLayout{
- anchors.verticalCenter: parent.verticalCenter
- FluText{
- text:"垂直方向的FlipView"
- }
- FluFlipView{
- vertical:true
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- sourceSize: Qt.size(400,300)
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_2.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_3.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- }
- }
- }
- CodeExpander{
- Layout.fillWidth: true
- Layout.topMargin: -1
- code:'FluFlipView{
- vertical:true
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- Image{
- source: "qrc:/example/res/image/banner_1.jpg"
- asynchronous: true
- fillMode:Image.PreserveAspectCrop
- }
- }
- '
- }
- }
|