🔹 Topics:
- What is PySide6?
- Installing PySide6
- Understanding
QApplication,QWidget, andexec()
💻 Code Example: Show a simple empty window
🎯 Exercise: Modify the window’s title and size
🔹 Topics:
- Adding buttons (
QPushButton) - Adding labels (
QLabel) - Adding text input (
QLineEdit)
💻 Code Example: A basic form with a button, label, and text field
🎯 Exercise: Create a UI where a user types their name, and clicking a button displays it in a label
🔹 Topics:
- What are signals and slots?
- Connecting a button click (
.clicked.connect()) - Handling text changes (
.textChanged.connect())
💻 Code Example: Clicking a button updates a label
🎯 Exercise: Create an app where clicking a button changes a label's text to "Hello, World!"
🔹 Topics:
- Vertical Layout (
QVBoxLayout) - Horizontal Layout (
QHBoxLayout) - Grid Layout (
QGridLayout)
💻 Code Example: Create a calculator layout using QGridLayout
🎯 Exercise: Arrange a form with a name field, age field, and submit button in a vertical layout
🔹 Topics:
- What is Object-Oriented Programming (OOP) in PySide6?
- Creating custom widgets using Python classes
- Overriding
QWidgetto make your own window class
💻 Code Example: Convert an existing window into a custom class
🎯 Exercise: Create a MyWindow class that displays a custom message
🔹 Topics:
- What is Qt Designer?
- How to install and open it
- How to create a
.uifile
💻 Code Example: Open Qt Designer, drag a button, and save the .ui file
🎯 Exercise: Create a simple form in Qt Designer with a label and button
🔹 Topics:
- Using
pyside6-uicto convert.uito.py - Loading a
.uifile dynamically
💻 Code Example: Load a .ui file and display the window
🎯 Exercise: Modify the .ui file and see the changes in Python
🔹 Topics:
- How to connect button clicks in Qt Designer
- Using Python to handle UI events
💻 Code Example: Button in Qt Designer changes a label text
🎯 Exercise: Create an app where clicking a button displays "Hello, Qt Designer!"
🔹 Topics:
- What is
QMainWindow? - Adding menu bars, toolbars, and status bars using Qt Designer
- Structuring a main application window
💻 Code Example: Load a .ui file with a menu bar
🎯 Exercise: Add a "File" menu with an "Exit" option that closes the app
🔹 Topics:
- Using Python to control Qt Designer elements
- Accessing UI components from a
.uifile
💻 Code Example: Change a label’s text when a button is clicked
🎯 Exercise: Create a login form with username and password fields
🔹 Topics:
- Structuring a real project
- Saving user data
- Displaying pop-up messages
💻 Code Example: A To-Do List App with Qt Designer
🎯 Exercise: Add a "Clear List" button to reset the to-do list
🔹 Topics:
- Using
QMessageBoxfor alerts - Creating custom pop-ups
💻 Code Example: Show a confirmation message before closing the app
🎯 Exercise: Create a pop-up message when clicking a button
🔹 Topics:
- Opening files (
QFileDialog) - Saving text to a file
💻 Code Example: Open a .txt file and display its content
🎯 Exercise: Create a "Save As" button to save text
🔹 Topics:
- Using Qt Stylesheets (
setStyleSheet()) - Customizing buttons and backgrounds
💻 Code Example: Change button colors dynamically
🎯 Exercise: Apply a dark theme to your UI
🔹 Topics:
- Converting a PySide6 app into an EXE file
- Using
pyinstallerto distribute apps
💻 Code Example: Convert a simple app into an .exe
🎯 Exercise: Package your own project
After all lessons, we’ll build a full PySide6 app (your choice):
- To-Do List App
- Simple Calculator
- Note-Taking App
You’ll use Qt Designer + PySide6 + your own logic to complete it! 🚀