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. How can I chain scrolling events from Listview to Flickable ?
Forum Updated to NodeBB v4.3 + New Features

How can I chain scrolling events from Listview to Flickable ?

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

    I use Flickable which its content item is ListView.
    How can I chain the scrolling events from the ListView to the Flickable ?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Are you sure you need that kind of setup? ListView inherits from a Flickable, you don't need to declare another one. I don't know of any easy chaining mechanism here, you would probably need to push mouse events further up the chain (using mouse.accepted = false).

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aabc
        wrote on last edited by
        #3

        I want to implement a gridview which can be scrolled both horizontally and vertically.

        Any suggestions ?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Just set:
          @
          flickableDirection = Flickable.HorizontalAndVerticalFlick
          @

          in your ListView or GridView. Alternatively, you can create your own element based on Column and Flickable. It all depends on your preference and features you need to have.

          (Z(:^

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aabc
            wrote on last edited by
            #5

            The scrolling behavior with flickableDirection = Flickable.HorizontalAndVerticalFlick is terrible

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ang8085
              wrote on last edited by
              #6

              Is this issue solved? I want to scroll listview as horizontal direction. And also I want to flick each list item to vertical direction.

              I include vertical flickable in listview's delegate.

              It works well as PC.. But when I upload it to device( mobile ) , listview isn't scroll well because flickable takes mouse event ...

              Is there any solution ??

              Because of this reason, I tried to make listview 's flickableDirection Flickable.HorizontalAndVerticalFlick. But it's not working too..

              1 Reply Last reply
              0
              • A Offline
                A Offline
                aabc
                wrote on last edited by
                #7

                I Didn't find a solution yet

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ang8085
                  wrote on last edited by
                  #8

                  In my case, I solved the bug.
                  The reason was I added a mouse area in Image which located in flickable.
                  In case of this, just set value of mouse area's z as 999. It works now.

                  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