Forums

OverviewV-Play 1 SupportBuild problems on Android › Reply To: Build problems on Android

OverviewV-Play 1 SupportBuild problems on Android › Reply To: Build problems on Android
#4226

Heini

Hi Chris,

 

i´m sure, thats the reason for it. You can reproduce the error with the following code:

GameWindow {
id: window
activeScene: scene

width: 960
height: 640

property int curImage: 0
property string filename: “Image”

Scene {
id: scene

width: 480
height: 320

Image{
id: image
source: “Image1.jpg”
anchors.fill: parent

}

SimpleButton{
id: button
text: “weiter”
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
++curImage;
if (curImage <= 30)
{
var filestring = filename + curImage + “.jpg”
image.source = filestring
}

}
}

}

}

In this example i am using 30 images with a size of 500×500 px and 250KB. They are named “Image1.jpg”, “Image2.jpg” ….and so on, till “Image30.jpg”. I am using a Samsung Galaxy Ace, that is not able to reach the last image. It would be great, if one could choose, if the image should be cached or not (maybe by setting Image::cache to false).

Bye and have a nice weekend!

Heini

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support