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::ItemIgnoresTransformations mouse interact

QGraphicsItem::ItemIgnoresTransformations mouse interact

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 378 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.
  • S Offline
    S Offline
    samdol
    wrote on last edited by
    #1

    Hi,

    I have put a QGraphicsRectItem on QGraphicsPixmapItem which is a parent item. Since RectItem is big enough, it is easy to select RectItem by mouse click. When I scale down the PixmapItem, RectItem also zoom out as expected. For example, if I zoom out PixmapItem by 5%, RectItem also become smaller. because RectItem becomes small, now it is hard for me to select it by mouse clicking. After applying setFlag(QGraphicsItem::ItemIgnoresTransformations) to RectItem, it stays the same rect size even after zooming PixmapItem. But it is still hard to select RectItem by mouse. Is this a bug, or is there any workaround to select RectItem easily even after zooming out PixmapItem?

    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