Run command with PyQt5 and getting the stdout and stderr
问题 I want to run command with PyQt5. And I want to get the stdout and stderr in time order and in real-time. I separated into UI class and Worker class. There are several UI classes, but for simplicity, I've specified just one. I've tried to solve this problem, but I can't. I can't connect between the Worker thread and logger function. test_ui.py import sys import subprocess from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout, QVBoxLayout from PyQt5.QtWidgets import QPushButton,