ProgressIndicator Class

(Utils::ProgressIndicator)

The ProgressIndicator class shows an circular, endlessly animated progress indicator. More...

Header: #include <ProgressIndicator>
Inherits: QWidget

Public Functions

ProgressIndicator(ProgressIndicatorSize size, QWidget *parent = nullptr)
void attachToWidget(QWidget *parent)
void setIndicatorSize(ProgressIndicatorSize size)

Reimplemented Public Functions

virtual QSize sizeHint() const final
  • 213 public functions inherited from QWidget

Additional Inherited Members

  • 58 properties inherited from QWidget
  • 19 public slots inherited from QWidget
  • 3 signals inherited from QWidget
  • 5 static public members inherited from QWidget
  • 35 protected functions inherited from QWidget
  • 1 protected slot inherited from QWidget

Detailed Description

The ProgressIndicator class shows an circular, endlessly animated progress indicator.

Use it if you want to indicate that some work is being done, but you do not have the detailed progress information needed for a progress bar. You can either create the widget on demand, or create the widget once and only show it on demand. The animation only runs while the widget is visible.

Member Function Documentation

ProgressIndicator::ProgressIndicator(ProgressIndicatorSize size, QWidget *parent = nullptr)

Constructs a ProgressIndicator of the size size and with the parent parent.

Use attachToWidget to make the progress indicator automatically resize and center on the parent widget.

See also attachToWidget and setIndicatorSize.

void ProgressIndicator::attachToWidget(QWidget *parent)

Makes the indicator a child of parent, automatically centering on it, and adapting to size changes.

void ProgressIndicator::setIndicatorSize(ProgressIndicatorSize size)

Changes the size of the progress indicator to size.

See also indicatorSize.

[final virtual] QSize ProgressIndicator::sizeHint() const

Reimplemented from QWidget::sizeHint().

Returns the size of the indicator in device independent pixels.

See also indicatorSize.