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. Swipe of listView is not working in loader
Forum Updated to NodeBB v4.3 + New Features

Swipe of listView is not working in loader

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 215 Views 1 Watching
  • 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
    dsba
    wrote on last edited by
    #1

    I have two qml files in which listview are defined in each. I have Loader where these two files get loaded based on flag.
    listView1.qml
    ListView {
    anchors.fill: parent
    ....
    focus: true
    model: model1
    delegate: delegate1
    }

    ListView2.qml
    ListView {
    anchors.fill: parent
    ....
    focus: true
    model: model1
    delegate: delegate2
    }
    Loader.qml
    Rectangle {
    id: rect
    Loader {
    anchors.fill : rect
    focus : true
    source : flag ? ListView1 : ListView2
    }

    Running qmlScene on individual ListView qml files works as expected but when Loader tries to load swipe does not work

    Thanks in advance

    1 Reply Last reply
    0
    • CharbyC Offline
      CharbyC Offline
      Charby
      wrote on last edited by
      #2

      It might simply comes from rect dimension to not be defined.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dsba
        wrote on last edited by
        #3

        I found the issue. There was MouseArea defined for Loader too, so on click, that MouseArea was getting triggered. I moved whole MouseArea to listview files, this seems to be working for me

        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