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 update a custom QQuickPaintedItem's visible area?

How to update a custom QQuickPaintedItem's visible area?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 744 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.
  • tracymaT Offline
    tracymaT Offline
    tracyma
    wrote on last edited by
    #1

    I create a custom QQuickPaintedItem then use it in QML with width = 100, height = 100. when I scale the item up, the part exceed {100, 100} is not visible. How can I update the visible area of a custom QQuickPaintedItem?

    1 Reply Last reply
    0
    • DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by
      #2

      @tracyma said in How to update a custom QQuickPaintedItem's visible area?:

      QQuickPaintedItem

      Does the update() method not work?
      http://doc.qt.io/qt-5/qquickpainteditem.html#update

      1 Reply Last reply
      1
      • tracymaT Offline
        tracymaT Offline
        tracyma
        wrote on last edited by
        #3

        works, thank you! @Diracsbracket

        DiracsbracketD 1 Reply Last reply
        0
        • tracymaT tracyma

          works, thank you! @Diracsbracket

          DiracsbracketD Offline
          DiracsbracketD Offline
          Diracsbracket
          wrote on last edited by Diracsbracket
          #4

          @tracyma
          Great! Please also don't forget to mark this thread as "Solved" so that the good souls on this forum can focus on the remaining problems! Cheers.

          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