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

image:the sourceSize of image should be reset while changing the source of image

    XMLWordPrintable

Details

    • af05f64d3edc860c3cf79c7f0bdf2377faae5f40

    Description

      the sourceSize.width and sourceSize.height of image should be reset while changing the source and sourceSize of image,
      the property sourceSize.width and sourceSize.height will change only when the sourceSize.width and sourceSize.height are not set.
      so that i can not get the actual size of image when i change the source and sourceSize.width,height of image.
      On the other hand ,in QtSDK_1.1,when i just set sourceSize.width and sourceSize.height,don't set width and height,
      like this :Image {
      id:picture //actual size 4000*3000
      sourceSize:1920
      sourceSize:1080
      Component.onCompleted:

      {console.log("picture.width::"+picture.wdith+"picture.height::"+picture.height)}

      }
      I found that the picture.width and picture.height are 1920 and 1080,not 4000*3000.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            niky weizhao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes