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. QGraphicsItem::ItemIgnoresTransformation and changing the 'origin' of the item?
Forum Updated to NodeBB v4.3 + New Features

QGraphicsItem::ItemIgnoresTransformation and changing the 'origin' of the item?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 689 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.
  • R Offline
    R Offline
    RedCube
    wrote on last edited by
    #1

    Hi,

    I have some QGraphicsItems overlayed on a QPixmap. I want to zoom in on the pixmap without scaling the QGraphicsItems.

    myItem->setFlag(QGraphicsItem::ItemIgnoresTransformations, true) works just fine in this respect. However, the 'fixed point' (that which doesn't change under zoom, relative to the pixmap) of the item is the top-left corner of the item's bounding rect, whereas I would like the origin to be the centre of the bounding rect. So that the centre of the item remains in the same place when I zoom.

    Is this a trivial thing I'm missing? (massive newbie alert of course).

    Thanks in advance.

    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