PyQt Tutorial (original) (raw)

This PyQt tutorial helps you develop beautiful GUI applications from scratch with PyQt6.

What’ll you learn #

Who this PyQt tutorial is for #

We create this PyQt tutorial for intermediate Python programmers who want to make powerful and beautiful desktop applications. We assume that you have been working with Python and understanding Python object-oriented programming.

Section 1. Getting Started #

This section helps you get started with PyQt by developing the first but famous program that shows the Hello World message and helps you understand how PyQt works under the hood.

In this section, you’ll learn about the basic widgets including QLabel, QPushButton, and QLineEdit.

Section 3. Layout Management #

In this section, you’ll learn how to use Qt layout management to place and arrange widgets in the application window.

In this section, you’ll learn how to use other commonly used PyQt widgets such as checkbox, radio button, combobox, spinner, date edit, time edit, date and time edit, and slider.

Section 5. Message Boxes & Dialogs #

This section introduces to you the message boxes, input dialogs, and file dialogs so that you can create more interactive applications.

Section 6. Main Window, Menus, Toolbars, and Status Bars #

This section shows you how to create the main window and other commonly used widgets like menu bars, toolbars, and status bars. We’ll develop a simple text editor program.

This section introduces to you the widgets for presenting data including list, table, and tree widgets.

Section 8. Qt Designer #

Section 9. PyQt & Concurrency #

This section shows you how to create a responsive PyQt application using multithreading techniques.

Section 10. Theming #

This section guides you on how to customize the Qt widgets using Qt style sheets, themes, and icons.

Section 11. PyQt Model/View Pattern #

Section 12. Package & distribute PyQt apps #

Was this tutorial helpful ?