본문 바로가기

Mastering-GUI-Programming5

Styling Qt Applications It is easy to appreciate the clean, native look that Qt effortlessly provides by default. But for less business-like applications, plain gray widgets and bog-standard fonts don't always set the right tone. Even the drabbest utility or data entry application occasionally benefits from the addition of icons or the judicious tweaking of fonts to enhance usability. Fortunately, Qt's flexibility allo.. 2023. 3. 8.
Building Applications with QMainWindow import sys from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc class SettingsDialog(qtw.QDialog): """Dialog for setting the settings""" def __init__(self, settings, parent=None): super().__init__(parent, modal=True) self.setLayout(qtw.QFormLayout()) self.settings = settings self.layout().addRow( qtw.QLabel('Application Settings'), ) self.show_warning.. 2023. 3. 8.
Handling Events with Signals and Slots Support for Signals and Slots : https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html Using Qt Designer : https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html 신호 및 슬롯 기본 사항 object1.signalName.connect(object2.slotName) 슬롯 은 신호를 수신하고 이에 응답하여 작동할 수 있는 객체 메서드입니다. 이벤트에 대한 애플리케이션의 응답을 구성하기 위해 신호를 슬롯에 연결합니다. 신호는 이벤트 유형에 대한 응답으로 방출될 수 있는 개체의 특수 속성입니다. 이벤트는 사용자 작업, 시간 제한 또.. 2023. 3. 8.
Building Forms with QtWidgets 2 Building Forms with QtWidgets One of the first steps in application development is prototyping your app's GUI. With a wide range of ready-to-use widgets, PyQt makes this very easy. Best of all, we can move our prototype code directly into an actual application when we're done. In this chapter, we're going to get familiar with basic form design over the following topics: Creating ba.. 2023. 3. 8.
Deep Dive into PyQt 1 Section 1: Deep Dive into PyQt In this section, you will explore the core features of PyQt. By the end of this section, you should be comfortable with the basic design workflow and coding idioms involved in writing PyQt applications and feel confident in your ability to construct simple PyQt interfaces. The following chapters are in this section: Chapter 1, Getting Started with PyQt Chapter 2,.. 2023. 3. 8.