In this PyQt5 tutorial, we will be learning how to drag rectangles using our mouse. Things I will be covering to create the shape drawing function: 1) paintEvent, 2) mousePressEvent, 3) mouseMoveEvent, and 4) mouseReleaseEvent.

What is PyQt?

PyQt is a library created by Riverbank based on the Qt framework to let you build desktop applications in Python. (An alternative is PySide2, by Qt the company itself).

Qt framework itself is written in C++, and the framework is also available in other programming languages, such as Java and C++. By using Python, we can build applications much more rapidly.

Subscribe: https://www.youtube.com/channel/UCvVZ19DRSLIC2-RUOeWx8ug

#pyqt5 #python

Draw Rectangles Using a Mouse | PyQt5 Tutorial
3.60 GEEK