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

QVariantAnimation doesn't trigger signals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.13.0
    • PySide
    • None
    • Linux/X11

    Description

      The following code doesn't trigger the test slot . But it works with QTimeLine

       

       

      class AreaScene(QGraphicsScene):
          def __init__(self, parent = None):
               super().__init__()
               self.addItem(QGraphicsRectItem(0,0,10,10))
               self.anim = QVariantAnimation()
               self.anim.setDuration(1000)
               self.anim.setStartValue(1)
               self.anim.setEndValue(10)
               self.anim.valueChanged.connect(self.test) 
               self.anim.start()
          def test(self, x):
              print("hello")
      

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            sschutz sacha schutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes