Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Qt 阅读提要后,如何删除BusyIndicator_Qt_Symbian_Qml - Fatal编程技术网

Qt 阅读提要后,如何删除BusyIndicator

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

我有一个BusyIndicator的问题,发生的是我已经指定了BusyIndicator,当加载提要时会被删除,但是在我的文件中。QML图像没有出现在提要中,我想知道是否有任何方法可以告诉BusyIndicator当图像显示时BusyIndicator remove。

您可以这样做

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,为了让我们能够帮助您,您需要更清晰、更具体,这个问题目前没有多大意义!这将是一个好主意,包括一些代码来显示你正在做什么。。。