Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Swipe View with ListPages
Qt 6.11 is out! See what's new in the release blog

Swipe View with ListPages

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 239 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Debson
    wrote on last edited by
    #1

    Hi,

    I'm trying to create SwipeView with ListPage, but I have noticed that it's not possible to create SwipeView with any type of Page component.

    AppTabBar {
            id: appTabBar
            contentContainer: swipeView
    
            AppTabButton { text: "First" }
    
            AppTabButton { text: "Second" }
        }
    
    Quick2.SwipeView {
            id: swipeView
            width: parent.width
            anchors.top: appTabBar.bottom
            anchors.bottom: parent.bottom
            clip: true
    
            FirstPage { }
            SecondPage { }
        }
    
    

    Both FirstPage and SecondPage contains ListPage component.
    Application crashes when this code is executed. When I change "FirstPage" and "SecondPage" to other QML Components like Item or Rectangle it works perfectly. Unfortunately, when I place ListPage inside a Rectangle component then page is not refreshed and doesn't display ListPage that is inside.
    Is there a way to overcome this issue? I couldn't find an answer anywhere. I don't want to use StackLayout, it's not possible to swipe it.

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved