Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt busy indicator

Tags:

qt

indicator

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

like image 583
user3139563 Avatar asked Jul 02 '15 20:07

user3139563


2 Answers

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

like image 121
user3139563 Avatar answered Sep 22 '22 02:09

user3139563


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.

like image 41
Miki Avatar answered Sep 23 '22 02:09

Miki