toggle button1 [QML] Toggle Button / 토글 버튼 (1) 폴더 구조├ ─QML/│ ├ ─ qml/│ └ view.qml└ main.py # main.pyimport sysfrom PySide6.QtCore import QUrlfrom PySide6.QtGui import QGuiApplicationfrom PySide6.QtQml import QQmlApplicationEngineif __name__ == "__main__": app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() engine.load(QUrl("qml/view.qml")) if not engine.rootObjects(): sys.exit(-1) sys.ex.. 2024. 6. 19. 이전 1 다음 반응형