Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1101

QtCharts.scroll is enable ! I can't make it works, please fix it, thanks!

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.14.0
    • 5.13.1
    • PySide, Shiboken
    • None
    • Pycharm + python 3.6 + PySide2
    • Windows
    • f5265a2a f5265a2ab8b19b181e7e7b8175a9598cf2a1fbc9 (pyside/pyside-setup/5.13)

    Description

          def handleTimeout(self):
              x = self.plotArea().width() / self.axisX.tickCount()
              self.x_sum += x
              y = (self.axisX.max() - self.axisX.min()) / self.axisX.tickCount()
              self.m_x += y
              self.m_y = QRandomGenerator.global_().bounded(5) - 2.5
              self.axisX.setRange(self.x_sum, self.x_sum + 10)
              self.series.append(self.m_x, self.m_y)
              self.scroll(x, 0)     # PySide2.QtCharts.QtCharts.scroll can not work, please fix it, thanks!

              # the axisX can't being scroll by itself 
              if self.m_x >= 100:
                  self.timer.stop()

      1. see more in DynamicSpline_PySide2.py thanks !

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mariana Mariana Meireles
            spacey 11 3434
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes