I want to include a native Qt busy indicator in my app, but I'm not sure how to add it, because it is a part of QML, and I write my app in c++.
http://wiki.qt.io/Busy-Indicator-for-QML
I have found that QML components can be included with QQuickWidget. That way, QML BusyIndicator is easily added to C++ applications. http://doc.qt.io/qt-5/qquickwidget.html
Without recurring to third-party implementations or subclassing a widget, the only way I know to display a busy indicator with standard QWidgets is:
QProgressBar* bar = new QProgressBar();
bar->setRange(0,0);
This will show an "indeterminate" progress bar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With