| 15 | # Subclassing QThread |
| 16 | # http://doc.qt.nokia.com/latest/qthread.html |
| 17 | class AThread(QtCore.QThread): |
| 18 | |
| 19 | def run(self): |
| 20 | count = 0 |
| 21 | while count < 5: |
| 22 | print("Increasing", count) # break here |
| 23 | sys.stdout.flush() |
| 24 | count += 1 |
| 25 | |
| 26 | app = QtCore.QCoreApplication([]) |
| 27 | thread = AThread() |
no outgoing calls
no test coverage detected