[PyQt6] PartⅠ.designer

Designer

convert .ui to .py

pyuic6 -x [].ui -o [].py

Loading UI

from PyQt6.QtWidgets import QApplication, QWidget
from PyQt6 import uic

class UI(QWidget):
    def __init__(self):
        super().__init__()
        uic.loadUi("WindowUI.ui", self)


app = QApplication(sys.argv)
window = UI()
window.show()
app.exec()
posted @ 2022-05-21 19:37  deadright  阅读(39)  评论(0编辑  收藏  举报