QGraphicsItem doesn’t receive mouse hover events

QGraphicsItem doesn’t receive mouse hover events

Asked on January 11, 2019 in Qt.
Add Comment


  • 2 Answer(s)

    QGraphicsItem  receive mouse hover events:

    They used to setAcceptHoverEvents(true)  in the  assemble of QGraphicsItem in the derived class.

     

    Answered on January 11, 2019.
    Add Comment

    The alternative answer is:

           The  alter the  mouseMoveEvent in  the  application of the QGraphicsView class to fix the cell by adding it.

     

    Answered on January 11, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.