Create a Painting App With PyQt in Python (with File Saving)! | PyQt6 Tutorial Part 9

Опубликовано: 15 Октябрь 2024
на канале: TurbineThree
2,849
48

Starter Code: https://github.com/RoyChng/pyqt6-tuto...

In this video, I showcase how to create a simple painting application with PyQt in Python. Throughout this video, we'll learn how to use QPainter to draw on a QPixmap to draw lines, circles and dots within our application.

We also learn about using QPen and QBrush to customize what we've drawn.

To draw where the user has clicked on, we make use of mouse move and mouse release events.

Lastly, we make our application complete by adding a color dialog and a file dialog to let our users further customize their drawing and to save their final result to a JPG file.

Any feedback or suggestions? Let me know!