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

QTimer often freeze and miss timeout signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 1.2.x
    • PySide
    • None

    Description

      My code like these:

      self.intervalTimer = QtCore.QTimer()
      self.intervalTimer.timeout.connect(self.loop_do_run_action)
      self.intervalTimer.setSingleShot(True)

      def loop_do_run_action(self):
      #do some actions
      ....
      self.intervalTimer.start(1000)

      I found the QTimer often miss timeout signal, and the loop_do_run_action often can't be called, then the loop will be stopped. When this issue happened, I call self.intervalTimer.isActive(), the result is True, but the slot never can be called.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            flyaflyaa flyaflyaa
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes