FlashGraphic:public QGraphicsPixmapItem
mousepress中没有调用基类的方法,导致鼠标事件传递出现中断,致使没有取消第一个图形的焦点。
void FlashGraphic::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if(event->button() == Qt::LeftButton)
m_ptfMousePressed = event->scenePos();
QGraphicsPixmapItem::mousePressEvent(event);
}