本文档用于QT学习
QT creator 4.9.1
QT 5.12.4
qt-opensource-windows-x86-5.9.9.exe
pyside
解决PySide2的This application failed to start because no Qt platform plugin could be initialized问题
1 | dirname = os.path.dirname(PySide6.__file__) |
pyside加载Qt Creator
https://blog.csdn.net/baidu_36499789/article/details/119486355
Qt creator Qt->Qt Designer Form
1 | pyuic5 dialogtest.ui –o test.py # pyqt库 从ui文件生成python文件 |
1 | app = QtWidgets.QApplication(sys.argv) |
QT多线程
https://www.pythonguis.com/tutorials/multithreading-pyside-applications-qthreadpool/
1 | Label.setScaledContents(True) # 加载的图片设置自适应Labbel大小 |