Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Move icons, avoid dragging tail when the image is oversized
Qt 6.11 is out! See what's new in the release blog

Move icons, avoid dragging tail when the image is oversized

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 1 Posters 732 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by A Former User
    #1

    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

    bkt

    gfxxG 1 Reply Last reply
    0
    • gfxxG gfxx

      UPDATE:

      calling update(); NOT SOLVE

      regards
      giorgio

      gfxxG Offline
      gfxxG Offline
      gfxx
      wrote on last edited by
      #3

      @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

      bkt

      1 Reply Last reply
      0
      • gfxxG gfxx

        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

        gfxxG Offline
        gfxxG Offline
        gfxx
        wrote on last edited by
        #2

        UPDATE:

        calling update(); NOT SOLVE

        regards
        giorgio

        bkt

        gfxxG 1 Reply Last reply
        0
        • gfxxG gfxx

          UPDATE:

          calling update(); NOT SOLVE

          regards
          giorgio

          gfxxG Offline
          gfxxG Offline
          gfxx
          wrote on last edited by
          #3

          @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

          bkt

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved