[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()