Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Charts Panning with ScrollHandDrag Problem

Qt Charts Panning with ScrollHandDrag Problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 2.0k Views 2 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.
  • V Offline
    V Offline
    veriginia
    wrote on last edited by
    #1

    Qt Carts Drag Problem
    We are using Qt charts. I need to implement zooming and dragging on chart. I implemented my own ChartView and set the drag mode to QGraphicsView::ScrollHandDrag in ChartView's
    constructor. But it does not work. What can be wrong?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should also share the code you use to setup your chart.

      Note that Qt Chart is a licensed product so you might rather want to contact the Qt Company directly for questions related to it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        martonmiklos
        wrote on last edited by
        #3

        Have you been able to solve it?

        @SGaist

        The QChartView has a setDragMode method, which changes the cursor to hand if I call it with: setDragMode(ScrollHandDrag);, but the scrolling does not get performed.

        E 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Like I already wrote to @veriginia, please provide a code sample that reproduce this.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M martonmiklos

            Have you been able to solve it?

            @SGaist

            The QChartView has a setDragMode method, which changes the cursor to hand if I call it with: setDragMode(ScrollHandDrag);, but the scrolling does not get performed.

            E Offline
            E Offline
            engsml
            wrote on last edited by
            #5

            @martonmiklos Hi! I found your Q while searching for the same problem. How did you end up figuring it out?

            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