pyside2

QThread closes whenever QFileDialog Called After Migrating from PyQt5 to Pyside2

别等时光非礼了梦想. 提交于 2020-12-04 04:59:23
问题 First of all, I'm currently migrating my source code from PyQt5 to PySide2 which requires me to change some of the syntaxes. As this site said that it only needs 3 things to do migrate from PyQt to Pyside2. 1.app.exec_. exec_ was used as exec is a Python2 keyword. Under Python3, PyQt5 allows the use of exec but not PySide2. 2.Under PyQt5 it’s QtCore.pyqtSignal and QtCore.pyqtSlot and under PySide2 it’s QtCore.Signal and QtCore.Slot . 3.loading Ui files. But anyway later on when I tried to run