问题描述
我正在尝试使用 KDE 框架在等离子桌面的任务栏中显示进度.简而言之,它在复制文件时想做与 dolphin 相同的事情:
I am trying to show a progress in the taskbar of the plasma desktop using the KDE Frameworks. In short, it want to do the same thing as dolphin, when it copies files:
我有点卡住了,因为我什至不知道从哪里开始.我发现唯一可能有用的是 KStatusBarJobTracker,但我不知道怎么用.我找不到如何执行此操作的任何教程或示例.
I'm kinda stuck, because I don't even know where to get started. The only thing I found that could be useful is KStatusBarJobTracker, but I don't know how to use it. I could not find any tutorials or examples how to do this.
推荐答案
是的,事实证明您是对的,目前没有针对此的教程.然而,这个审查委员会的请求显示了它是如何在 KDevelop 中实现的,你应该可以通过它来解决它:) https://git.reviewboard.kde.org/r/127050/
Right, so as it turns out you are right, there is not currently a tutorial for this. This reviewboard request, however, shows how it was implemented in KDevelop, and it should be possible for you to work it out through that :) https://git.reviewboard.kde.org/r/127050/
ps:现在没有教程可能是您加入并提供帮助的好方法,为此编写一个小型的、自包含的教程......我相信会非常受欢迎:)
ps: that there is no tutorial now might be a nice way for you to hop in and help out, by writing a small, self contained tutorial for it... something i'm sure would be very much welcomed :)
这篇关于KDE 任务栏进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!