Qt 阅读提要后,如何删除BusyIndicator
我有一个BusyIndicator的问题,发生的是我已经指定了BusyIndicator,当加载提要时会被删除,但是在我的文件中。QML图像没有出现在提要中,我想知道是否有任何方法可以告诉BusyIndicator当图像显示时BusyIndicator remove。您可以这样做Qt 阅读提要后,如何删除BusyIndicator,qt,symbian,qml,Qt,Symbian,Qml,我有一个BusyIndicator的问题,发生的是我已经指定了BusyIndicator,当加载提要时会被删除,但是在我的文件中。QML图像没有出现在提要中,我想知道是否有任何方法可以告诉BusyIndicator当图像显示时BusyIndicator remove。您可以这样做 Image{ id:remoteImage source: "http://www.example.com/m.jpg" onProgressChanged: { if(progress==1
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
}
//指示器仅在加载图像时可见并运行。加载图像后或图像准备就绪时,“忙”指示灯将消失。嘿,Vicente,为了让我们能够帮助您,您需要更清晰、更具体,这个问题目前没有多大意义!这将是一个好主意,包括一些代码来显示你正在做什么。。。