hi all
i am working on a subclass of the QGraphicsItem class, i am trying to reimplemented the MouseReleaseEvent to do actions based on the pressed button but i cant get the right button to work, what i did was this:
Qt Code:
{ if(event->button() == Qt::LeftButton) { //do stuff } else if(event->button() == Qt::RightButton) { //do other stuff } }To copy to clipboard, switch view to plain text mode
is this the right way to do it?
Bookmarks