阅读提要后如何删除 BusyIndi​​cator

发布于 2025-01-07 08:43:55 字数 150 浏览 4 评论 0原文

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

I have a problem with a BusyIndicator, what happens is that I have appointed BusyIndicator that when loading the feed is removed, but in my file. QML images do not appear in the feed, I wonder if there is any way to tell the BusyIndicator that when the image is displayed BusyIndicator remove.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷情妓 2025-01-14 08:43:55

嗯,我就是这样做的,你可以尝试一下。

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 时,忙碌指示器将消失。

Well I did this, you can give it a try.

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 
}

//indicator only visible and run when image is loading. After image is being loaded or when Image.Ready, the busy indicator will disappear.

染火枫林 2025-01-14 08:43:55

你可以做这样的事情

Image{
   id:remoteImage
   source: "http://www.example.com/m.jpg"

   onProgressChanged: {
   if(progress==1.0)
        busyIndicator.visible=false;

  }
}

You can do something like this

Image{
   id:remoteImage
   source: "http://www.example.com/m.jpg"

   onProgressChanged: {
   if(progress==1.0)
        busyIndicator.visible=false;

  }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文