Skip to page content

Spinners

A Spinner is used to show the user a timely process is currently taking place. It is an important UX feature, which gives the user the feeling the system is continuing to work for longer term activities, like grabbing data from the server or some heavy calculations.

TIP

The API below applies to all spinners, except for QSpinner. Making an example with QSpinnerCube.

Usage

In the example below, hover over the spinners to see their names.

Please note that by default, QSpinner and all other spinners inherit the font-size of the parent and applies it as its size.

Size



Accessibility
v2.25+

Spinners render a bare animated SVG with no ARIA at all, so the loading state is invisible to screen readers. Pair a spinner with a live region that says so — an element with role="status" containing visually-hidden “Loading…” text — or mark the spinner itself aria-hidden="true" when a text alternative already exists elsewhere.