Translations:PySide Intermediate Examples/53/en

The X and Y coordinates of the mouse press are given by the reference "event.pos.x)" and "event.pos.y". The constants "QtCore.Qt.LeftButton" and "QtCore.Qt.RightButton" are used to determine which mouse button was pressed.