我有我的QML和我的C++代码。我的循环(我需要展示其进展)是在C++中开发的,如下所示:
for(unsigned int j = 0; j < Count; ++j) {
// Do stuff
}
在我的QML代码中,我需要这样的进度条:
ProgressBar {
value: j // Should come from C++ loop
// It is "j" on C++ loop
from: 0 // C++ loop starts out with 0
to: Count // C++ l