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. Overriding ensureVisible on QGraphicsObject
Qt 6.11 is out! See what's new in the release blog

Overriding ensureVisible on QGraphicsObject

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

    On my QGraphicsObject I can call .ensureVisible() and the view conveniently keeps it visible. However, I would like the view's scrolling to the new coordinates to be a smooth animation.

    Is this possible? I don't even know if I should override it in QGraphicsObject or my QGraphicsView, because I don't know how the object knows about the view it's part of.

    Thanks for your help.

    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