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

Move icons, avoid dragging tail when the image is oversized



  • On these repo I show how I make a sort of copy/paste image on QGraphicsScene ...

    giuhub-repo-with-copy-paste-image

    but using these highlightrectitem function genererate in scene these unexpected result when the image go out of rect ....

    myproblem.png

    I see that: if refresh the screen the "error" disappear .... but my intention is not see it at all...
    regards
    Giorgio



  • @gfxx

    I found the system of increase by necessary offset my highlightrectitem rect on itenchange void, solve the issue.

    But if someone suggest my a more efficient and elegant way to do this, please write it.

    regards
    giorgio



  • UPDATE:

    calling update(); NOT SOLVE

    regards
    giorgio



  • @gfxx

    I found the system of increase by necessary offset my highlightrectitem rect on itenchange void, solve the issue.

    But if someone suggest my a more efficient and elegant way to do this, please write it.

    regards
    giorgio


Log in to reply