Controlling a QThread in pyqt5?
问题 I wrote a webcam app with pyqt5 and opencv, which saves live videos. screenshot : https://i.hizliresim.com/kM8GOD.png I used a QThread for streaming without blocking main app. But the problem is, I can't control streaming&saving videos with my buttons. It start recording when I run main program but I want to make it with RUN button and save with STOP button. I tried do it with recording parameter but it's weird a bit. Program starts recording initially and first time I pressed stop it saves