<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SwipeView issues or go PathView]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">In my application I can swipe through a few mainpages until it reaches the last one. I would like to be able to go back to the first page when I swipe beyond the last one. I've read some things about using a PageView but can't seem to figure it out. Anyone who can help me get started? Do I make a listModel or just add the pages fully in the PathView or something like that?</p>
<pre><code>    SwipeView {
        id: swipeView
        objectName: "swipeView"

        currentIndex: 1
        anchors.fill: parent

        MainPage {
            objectName: "mainPage"
        }
        MainPage2 {
            objectName: "mainPage2"
        }
        MainPage3 {
            objectName: "mainPage3"
        }
        MainPage4 {
            objectName: "mainPage4"
        }
//        MainPage5 {
//            objectName: "mainPage5"
//        }
//        Item {
//            objectName: "page 6"
//        }

        onCurrentIndexChanged: {
            indicatorVisible = true;
            mainPages.state = currentItem.objectName
         }
    }

    PageIndicator {
        id: indicator

        count: swipeView.count
        currentIndex: swipeView.currentIndex

        anchors.top: swipeView.top
        anchors.horizontalCenter: parent.horizontalCenter

        delegate: Rectangle {
            implicitWidth: 8
            implicitHeight: 8

            radius: width / 2
            color: "white"

            opacity: index === swipeView.currentIndex ? 1.0 : 0.35
        }
    }
</code></pre>
]]></description><link>https://forum.qt.io/topic/110758/swipeview-issues-or-go-pathview</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 04:58:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/110758.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jan 2020 13:04:00 GMT</pubDate><ttl>60</ttl></channel></rss>