Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qwhatsthis funtionality for QGraphicsItems



  • hi to all,i want to create Qwhatsthis funtionality to Qgraphicsrectitems..some one suggest me is it possible?and suggest some ideas to implement.



  • Hi,

    Yes it's possible.

    Detect when the mouse is over an object (QGraphicsItem::acceptHoverEvents)
    Get the location of the mouse.
    Display a "What's this" object at position of the mouse.

    Hope that helps.


Log in to reply