Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved How to update a custom QQuickPaintedItem's visible area?

    QML and Qt Quick
    2
    4
    442
    Loading More Posts
    • 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.
    • tracyma
      tracyma last edited by

      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 Reply Quote 0
      • Diracsbracket
        Diracsbracket last edited by

        @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 Reply Quote 1
        • tracyma
          tracyma last edited by

          works, thank you! @Diracsbracket

          Diracsbracket 1 Reply Last reply Reply Quote 0
          • Diracsbracket
            Diracsbracket @tracyma last edited by Diracsbracket

            @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 Reply Quote 0
            • First post
              Last post