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???
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
Let your work talk for you
use mousePressEvent() and check for Qt::LeftButton
Bookmarks