Dear Friends
I have an GraphicsItem. I want to select it and move it only when the user presses left mouse on the item.How could I achieve this???Can anyone help me please???
Printable View
Dear Friends
I have an GraphicsItem. I want to select it and move it only when the user presses left mouse on the item.How could I achieve this???Can anyone help me please???
refer to:
QGraphicsItem::setAcceptedMouseButtons ( Qt::MouseButtons buttons )
QGraphicsItem::mousePressEvent()
also refer to QGraphicsItem::GraphicsItemFlags
use mousePressEvent() and check for Qt::LeftButton