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. Two QGraphicsItem-s change position around each other upon scaling
Forum Updated to NodeBB v4.3 + New Features

Two QGraphicsItem-s change position around each other upon scaling

Scheduled Pinned Locked Moved General and Desktop
qgraphicsitemqgraphicsscenescaling
1 Posts 1 Posters 767 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    Justice
    wrote on last edited by Justice
    #1

    Hi,

    I have a problem with QGraphicsItem.
    Sometimes when I setScale to two graphics items in the same scene (one of them is pixmap item and one of them is custom fillrect item), they seem to change relative positions. It does not happen on all scale factors, just from time to time. For example:
    Shifted example
    Normal example
    On the first one, rectangle is slightly shifted, but if I scale up (or down) more, it will come back to normal (second image). If i scale even more it might become shifted but on the lowest scale factors it will always be in a normal position. I think it happens on the same scale factors all the time, so its not random.

    Can anyone help?
    Thanks.

    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