QMouseEvent
QMouseEvent is a class in the Qt framework that represents mouse events. These events are generated when the user interacts with a widget using the mouse, such as pressing a button, releasing a button, or moving the cursor. The QMouseEvent object carries information about the event, including the type of mouse button involved, the position of the mouse cursor relative to the widget, and the position of the mouse cursor on the global screen.
When a mouse event occurs on a widget, Qt's event handling system dispatches a QMouseEvent to the
Key attributes of a QMouseEvent include its button property, which indicates which mouse button was pressed