HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📟
PyQt 5 Lecture
/
🎱
008 부록) 고급스러운 UI 프로젝트 적용하기
🎱

008 부록) 고급스러운 UI 프로젝트 적용하기

1. Project2. Code3. 실행화면4. Sample UI
아래 2개의 프로젝트를 적용하면 좀 더 고급스러운 UI 연출이 가능합니다.

1. Project

Project Name : Qt-Material https://github.com/UN-GCPDS/qt-material
Project Name : Dracula https://github.com/Wanderson-Magalhaes/Modern_GUI_PyDracula_PySide6_or_PyQt6

2. Code

여기서는 Qt-Material 프로젝트를 사용해보도록 하겠습니다.
pip install qt-material
import sys from PyQt5.QtWidgets import QApplication, QWidget, QLabel from PyQt5.QtGui import QIcon from PyQt5.QtCore import pyqtSlot from qt_material import apply_stylesheet def helloworld(): app = QApplication(sys.argv) widget = QWidget() textLabel = QLabel(widget) textLabel.setText("Hello World!") textLabel.move(150, 200) widget.setGeometry(50, 50, 400, 400) widget.setWindowTitle("PyQt5 Example") apply_stylesheet(app, theme='dark_teal.xml') widget.show() sys.exit(app.exec_()) 프로그램무한반복 = QApplication(sys.argv) 실행인스턴스 = helloworld() 프로그램무한반복.exec_()

3. 실행화면

notion image
 

4. Sample UI

아래와 같이 다양한 연출이 가능합니다.
출처 : https://github.com/UN-GCPDS/qt-material
출처 : https://github.com/UN-GCPDS/qt-material