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

Removing QStateMachine with circural references between states fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 1.0.9, 1.1.0
    • PySide
    • None
    • Windows 7 32 Bit, Python 2.7

    Description

      from PySide.QtCore import *
      
      class TestMachine(QStateMachine):
          s = Signal()
          def __init__(self):
              super(TestMachine, self).__init__()
              self.state1 = QState(self)
              self.state2 = QState(self)
              self.state1.addTransition(self.state2)
              self.state2.addTransition(self.state1)
      test = TestMachine()
      print "Removing TestMachine"
      test = None
      print "Done"
      

      Produces:

      Removing TestMachine
      

      Additionally program hangs for few second when doing line: test = None. In previous versions of PySide windows error occured after that.

      There is no error when using QSignalTransitions, but using QKeyEventTransition also fails

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            maciej.pawlisz Maciej Pawlisz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes