1
我遇到BusyIndicator问题,会发生什么情况是我指定了BusyIndicator,当加载Feed时删除了,但在我的文件中。 QML图像不会出现在提要中,我不知道有什么办法可以告诉BusyIndicator,当图像显示时,BusyIndicator会被删除。如何在阅读Feed后删除BusyIndicator
我遇到BusyIndicator问题,会发生什么情况是我指定了BusyIndicator,当加载Feed时删除了,但在我的文件中。 QML图像不会出现在提要中,我不知道有什么办法可以告诉BusyIndicator,当图像显示时,BusyIndicator会被删除。如何在阅读Feed后删除BusyIndicator
你可以做这样的事情
Image{
id:remoteImage
source: "http://www.example.com/m.jpg"
onProgressChanged: {
if(progress==1.0)
busyIndicator.visible=false;
}
}
嗯,我这样做,你可以试试看。
Image
{
id : image1
source:"...your source here"
}
BusyIndicator
{
id:busy1
anchors.centerIn: parent
width:50
height:50
visible: image1.status == Image.Loading
running: image1.status == Image.Loading
}
//指标只在加载图像时可见并且运行。加载图像或Image.Ready后,繁忙指示灯将消失。
嘿维森特,你需要更清晰更具体,以便我们能够帮助你 - 这个问题目前没有什么意义!包含一些代码以显示你在做什么是一个好主意...... – sjwarner 2012-02-20 21:05:42
请包括一些代码。 – sabbour 2012-02-21 12:53:40