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. Manual resizing of QGraphicsItem using mouse
QtWS25 Last Chance

Manual resizing of QGraphicsItem using mouse

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicsitemqgraphicsviewqgraphicsscenemouse eventresize
1 Posts 1 Posters 1.1k 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.
  • H Offline
    H Offline
    hellozee
    wrote on last edited by
    #1

    I have extended both QGraphicsScene and QGraphicsView, and at the same time overwritten the QGraphicsScene mousePress, mouseMove and mouseRelease events.
    Now this events are handled by my transform tool class which is also responsible for drawing a bounding rectangle. Doing manual resizing seems like a trivial task, but I am unable to override the hover events of the bounding rectangle class even after doing setAcceptHoverEvents(true); inside the derived QGraphicsRectItem.

    Is my approach a correct one? If yes where am I most probably going wrong, if not what should be a better approach? Another thing which came to my mind is should install an eventfilter for doing such stuff?

    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