April 2018
Beginner
714 pages
18h 21m
English
As an exercise, you can modify the event handling code so that it only changes the selection if the mouse event was triggered by the left mouse button. To see which button triggered the mouse press event, you can use the QMouseEvent::button() method, which returns Qt::LeftButton for the left button, Qt::RightButton for the right, and so on.
Read now
Unlock full access