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. Proxy Flickable moving to parent ListView on bound reach

Proxy Flickable moving to parent ListView on bound reach

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.5k 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.
  • T Offline
    T Offline
    trollixx
    wrote on last edited by
    #1

    Hi, all.

    In my project I have ListView with Flickable as delegate. Flickable contains Image. The goal I'm trying to achieve is to scroll to the next/previous ListView item when Image inside Flickable reaches to the left or right bound. So, the moving of Image should seamlessly turn into scrolling of ListView.

    Any suggestions how to implement such behaviour.

    Thanks in advance.

    Oleg

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AllenB2012
      wrote on last edited by
      #2

      Listviews by default are flickable, so check that:

      1. the Snap Mode Property of the ListView is set as -- snapMode: ListView.SnapOneItem (this should do it).

      2. Set your orientation on the Listview.

      3. You might wish to experiment with onFlickStarted and onFlickEnded.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        trollixx
        wrote on last edited by
        #3

        Thanks. SnapOneItem mode and orientation are already set and ListView flicks fine when delegate's Flickable has nothing to flick in it.

        Will play with events, but at the monent I have no idea how to bind events between Flickable and parent ListView.

        Oleg

        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