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. Buttons in a Flickable item

Buttons in a Flickable item

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

    I'm using QML on an embedded platform with touch screen capabilities (using tslib). Everything seems to work great except the following:

    1. I have about eight buttons in one of the views (using ListView and VisualItemModel). If I start tapping buttons, they usually work. However about every ten button selections, it completely misses and the onClicked() doesn't fire.

    2. The Flickable Element is too sensitive. When I tap on the screen to select a button, it can easily start a drag movement; it doesn't completely flick to the next screen, just "wiggles" the screen a bit and it settles down. I've tried modifying boundsBehavior, pressDelay, verticalVelocity, etc. to no avail. It seems like I should be able to control this so that it doesn't try to go to the next screen unless I really swipe it.

    Any ideas on how to resolve this issues is much appreciated!

    Thanks,

    Jeff

    Programs for sale...

    Fast, Reliable, Cheap: choose two.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      blam
      wrote on last edited by
      #2

      The Flickable sensitivity can be changed. If you are running qmlviewer, you can set the -dragthreshold option; otherwise, in a C++ app, use QApplication::setStartDragDistance().

      This may also fix the issues with the button selections if the Flickable is picking up flicks when it shouldn't because it is too sensitive.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jmoellmer
        wrote on last edited by
        #3

        Thanks! This solved all of my issues!

        Programs for sale...

        Fast, Reliable, Cheap: choose two.

        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