Not detecting QGraphicsItem::mouseReleaseEvent [SOLVED]



  • @void Circle::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
    {
    qDebug()<<"released";
    update();
    QGraphicsItem::mouseReleaseEvent(event);
    }@

    in the constructor when i use

    @setFlag(ItemIsMovable);@

    mouseReleaseEvent gets triggered

    but when i use

    @setFlag(ItemIsMovable,false);@

    mouseReleaseEvent doesn't get triggered and i get nothing

    i solved it by just addeing @setFlag(ItemIsSelectable);@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.