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

QML Image element did not update properly on N900

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 4.7.0
    • None
    • N900 PR1.2 Firmware

    Description

      Image element was not updated properly after source changed.
      The same source code works perfectly on desktop but not on N900:

      test.qml
      import Qt 4.7
      
      Rectangle {
          width: 480
          height: 800
          id:test
      
          function updateImage(){
              img.source = "http://172.18.2.150/upload/photos/portal/20100910-105832-test.j
          }
      
          Image {
              id: img
              asynchronous: true                               
              anchors.horizontalCenter: parent.horizontalCenter
              x:0 
              y:50      
              width: 300 
              height: 400
          }
      
                     
          Rectangle {       
              id: rectangle1                
              anchors.bottom : parent.bottom
              width: test.width
              height: 80              
                      color: "#440400"
      
              MouseArea {  
                  id: mr              
                  anchors.fill: parent                              
                  onClicked: { parent.focus = true;updateImage();  }    //this doesnt work on the N900 but works on desktop
              }
           
          }
      
                                                
      //    Component.onCompleted : updateImage();   //this works on both N900 and desktop
      
       
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              fernenge Harald Fernengel
              yutsai Yun-Ta Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes