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 to give flick height in tableview
Forum Updated to NodeBB v4.3 + New Features

how to give flick height in tableview

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

    Hi,
    I have wrote "tableview_id.flickableitem.flick(0,-500)" and on button click, tableview is getting flicked, first parameter is "x velocity" and second paramter is "y velocity". it is working properly.

    Now, My question is how to flick by certain height only, now it is flicking and showing last element.

    I want to know, how i can flick by particular height only like row height only.

    T 1 Reply Last reply
    0
    • Bhushan_SureB Bhushan_Sure

      Hi,
      I have wrote "tableview_id.flickableitem.flick(0,-500)" and on button click, tableview is getting flicked, first parameter is "x velocity" and second paramter is "y velocity". it is working properly.

      Now, My question is how to flick by certain height only, now it is flicking and showing last element.

      I want to know, how i can flick by particular height only like row height only.

      T Offline
      T Offline
      Tom_H
      wrote on last edited by
      #2

      @Bhushan_Sure Never tried it but I have two suggestions:

      1. Set flickDeceleration to a value that will stop after the desired height.
      2. Animate the contentY value instead of flicking.

      Good luck!

      Bhushan_SureB 1 Reply Last reply
      1
      • T Tom_H

        @Bhushan_Sure Never tried it but I have two suggestions:

        1. Set flickDeceleration to a value that will stop after the desired height.
        2. Animate the contentY value instead of flicking.

        Good luck!

        Bhushan_SureB Offline
        Bhushan_SureB Offline
        Bhushan_Sure
        wrote on last edited by
        #3

        @Tom_H Thank you for your suggestion, I have implemented in different way using flickableitem.atYend and contentY width.

        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