Skip to main content

QCustomSkeleton

QCustomSkeleton

A shimmering loading placeholder.

A rounded shape (line / rect / circle) with a moving shimmer, shown while real content loads. Colours come from tokens via qproperty (baseColor / highlightColor set by skeleton_qss).

At a glance​

TierFree (GPLv3)
Importfrom Custom_Widgets.QCustomSkeleton import QCustomSkeleton
Qt DesignerYes — drag it from the palette

Quick start​

from Custom_Widgets.QCustomSkeleton import QCustomSkeleton

widget = QCustomSkeleton()

Dark theme​

Colours come from the design tokens, so the widget follows the app theme with no extra work.

QCustomSkeleton in dark theme

Properties​

Every property below is settable in code and in Qt Designer.

PropertyTypeDefault
shapeenum: line/rect/circle``line
baseColorcolor—
highlightColorcolor—

Methods​

MethodDescription
baseColor(*args, **kwargs)Base color.
highlightColor(*args, **kwargs)Highlight color.
shape(*args, **kwargs)Shape.
start()Start.
stop()Stop.

Theming​

Colours come from the design tokens, so they follow the active theme. Roles used: surface-muted, surface.

See Design tokens.

QCustomAgendaList · QCustomAlert · QCustomAvatar · QCustomAvatarGroup · QCustomBadge · QCustomCard · QCustomChip · QCustomChipGroup