Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Swipeview Within Loader Issue
Forum Updated to NodeBB v4.3 + New Features

Swipeview Within Loader Issue

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 219 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.
  • K Offline
    K Offline
    kengineer
    wrote on last edited by
    #1

    I am trying to use a Swipeview component within a Loader component. I am finding that when used within the Loader, the Swipeview appears but does not allow me to actually swipe between items. See examples below:

    Swipes:

    SwipeView {
        currentIndex: 1
        anchors.fill: parent
        Item {
            Rectangle {
                width: 50
                height: 50
                color: "Blue"
            }
        }
        Item {
            Rectangle {
                width: 50
                height: 50
                color: "Red"
            }
        }
    }
    

    Does not swipe:

        Loader {
            sourceComponent: swipe
        }
    
        Component {
            id: swipe
            SwipeView {
                currentIndex: 1
                anchors.fill: parent
                Item {
                    Rectangle {
                        width: 50
                        height: 50
                        color: "Blue"
                    }
                }
                Item {
                    Rectangle {
                        width: 50
                        height: 50
                        color: "Red"
                    }
                }
            }
        }
    
    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