# Import PySide6 classesimportsysfromPySide6importQtCore,QtWidgets# Create a Qt applicationapp=QtWidgets.QApplication(sys.argv)# Create a Windowmywindow=QtWidgets.QWidget()mywindow.resize(320,240)mywindow.setWindowTitle('Hello, World!')# Create a label and display it all togethermylabel=QtWidgets.QLabel(mywindow)mylabel.setText('Hello, World!')mylabel.setGeometry(QtCore.QRect(200,200,200,200))mywindow.show()# Enter Qt application main loopsys.exit(app.exec())
외부 링크
Official website
Official Documentation on the Qt Documentation web site
Qt for Python on the Qt wiki
Differences Between PySide and PyQt on the Qt wiki