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. [SOLVED] Wheel Scroller
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Wheel Scroller

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 778 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
    th.thielemann
    wrote on last edited by
    #1

    I'm wondering whether there is a "Wheel Scoller Example.":http://doc.qt.io/qt-5/qtwebkitexamples-webkitwidgets-scroller-wheel-example.html in qml.
    Does somebody have qny experiance with a pure qml implementation?
    Or is it necessary to implement a own qml widget for that?
    Regards,
    Thmas

    1 Reply Last reply
    0
    • O Offline
      O Offline
      onek24
      wrote on last edited by
      #2

      It should be possible using a ListView therefore you can do it QML only.

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

        Yes, this is possible usign ListView. Check out these properties:
        @
        ListView {
        highlightRangeMode: ListView.StrictlyEnforceRange
        preferredHighlightBegin
        preferredHighlightEnd
        highlight
        }
        @

        Basically, you need to use StrictlyEnforceRange to keep your highlight in check. Then you need to make sure you position your highlight well using prefferedHighlightBegin and End properties.

        (Z(:^

        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