我再Pyqt 里用 subprocess.popen() 运行了一个 exe程序。 由于要捕获输出,所以 stdout =subprocess.PIPE.
用 while self.proc.poll(): do sth
可是,当我关闭窗口,这个被调用的exe 还在运行。我要怎么把它跟随窗口一同结束呢?