Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39443

Canvas size is not updated when canvas element is resized by a binding

    XMLWordPrintable

Details

    • fea8c9026def98748f700e33e9fb41249be2b3f2

    Description

      See the attached CanvasTest.qml. When clicking the button the canvas is supposed to be resized in both directions as height is bound to width. The canvas element is apparently resized but the canvasSize is seemingly not. See the screenshots for the effect. If you don't bind height to width but directly set it in the click handler instead this doesn't happen.

      Attachments

        1. CanvasTest.qml
          0.9 kB
          Ulf Hermann
        2. cropped.png
          5 kB
          Ulf Hermann
        3. initial.png
          5 kB
          Ulf Hermann

        Issue Links

          Activity

            People

              mitch_curtis Mitch Curtis
              ulherman Ulf Hermann
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: