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 properly use Flickable?

How properly use Flickable?

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

    I have following working structure:

    Item {
        ListView {
             delegate: Rectangle {
                    MouseArea {
                    }
                    <texts, images and controls> {
                    }
             }
        }
    }
    

    I need emit signal when user starts flick. I used Flickable type

            Flickable {
                onFlickStarted: console.warn(contentY)
            }
    

    In any structure places. But I did not get any output. How use this type? There no complete examples anywhere.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Flickable is a base class, ListView inherits it so ListView is already a Flickable

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      G 1 Reply Last reply
      1
      • VRoninV VRonin

        Flickable is a base class, ListView inherits it so ListView is already a Flickable

        G Offline
        G Offline
        Gourmet
        wrote on last edited by Gourmet
        #3

        @VRonin yes, you are right. I did not notice this first.

        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