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. implement flickable scrolling on a custom opengl item

implement flickable scrolling on a custom opengl item

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

    Hey guys,

    I have an opengl component based on QQuickFramebufferObject which I place on a qml window.
    Now I want to implement mouse (or touch) interaction to scroll inside my component. This scrolling should act like a flickable surface.

    Is there a component I could use to animate the deceleration and bouncing?
    Something where I set the content-dimension and with a signal that I just have to connect to my position slot?

    Thanks
    CU
    mts

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi themts,

      you could place a Flickable (http://doc.qt.io/qt-5/qml-qtquick-flickable.html) on top of your scene view and connect the Flickable's properties (contentX, contentY, horizontalVelocity, etc) to your view to control it. You have to set a transparent dummy item with proper geometry as the content item of the Flickable to make this work.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        themts
        wrote on last edited by
        #3

        hmm, not a very elegant way...
        I'm more interested in a c++ class.

        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