Without repeating third-party implementations or subclassing the widget, the only way I know to display the busy indicator with standard QWidgets is:
QProgressBar* bar = new QProgressBar();
bar->setRange(0,0);
This will show a "undefined" progress bar.
source
share