Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to get visible rectangle of QQuickPaintedItem inside ScrollView?
Qt 6.11 is out! See what's new in the release blog

How to get visible rectangle of QQuickPaintedItem inside ScrollView?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 311 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.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by kitfox
    #1

    I have a QQuickPaintedItem which is inside of a ScrollView and I'd like to figure out the rectangular area which is actually being drawn to the screen so that I can cut out drawing stuff that is not visible. Is there a way to do this? QPainter->viewport() and QPainter->window() are returning the entire size of the comopnent, not just the rectangle that is visible.

    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