Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Blocking behavior Quick qt 5.2.1: random crash on Image elements when caching is false

$
0
0
We have an I3 machine on Linux with the following specs: 0:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) Opengl 1.4 Regular PC – nothing spectacular. Whenever Image caching is false the bellow code crashes randomly when the image sources are changed (as bellow). I did not attach the images but you can use your ow – mines are 800×600 for Images and 80×60 those on the btns. This code does not crash on my laptop apparently on the same version of linux (opensuse) . The hardware difference is Nvidia grahics on laptop and CPU integrated graphic card on I3. Rectangle {     width: 1024     height: 768         Row {         property int imgWidth: 300         property int imgHeight: 300           Image {             id: img1             cache: false             width: parent.imgWidth             height: parent.imgHeight             source: "BallGolf.png"         }           Image {             id: img2             cache: false             width: parent.imgWidth             height: parent.imgHeight             source: "Fish.png"         }     }       Column {         property int imgWidth: 100         property int imgHeight: 100         anchors.right: parent.right           Image {             id: btn1             source: "LensBrownOn.png"             width: parent.imgWidth             height: parent.imgHeight             cache: false               MouseArea {                 anchors.fill: parent                   onClicked: {                     img1.source = "Fish.png"                     img2.source = "BallGolf.png"                       btn1.source = "LensBrownOnDark.png"                     btn2.source = "LensBrownOn.png"                 }             }         }           Image {             id: btn2             source: "LensBrownOnDark.png"             width: parent.imgWidth             height: parent.imgHeight             cache: false               MouseArea {                 anchors.fill: parent                   onClicked: {                     img1.source = "BallGolf.png"                     img2.source = "Fish.png"                       btn1.source = "LensBrownOn.png"                     btn2.source = "LensBrownOnDark.png"                 }             }         }     } }

Viewing all articles
Browse latest Browse all 4972

Trending Articles