Status & info
ProgressRing
Shows determinate or indeterminate progress around a ring.
Example

Usage
Active indeterminate sizes
An active indeterminate ProgressRing animates in small, medium, and large sizes.
#include <FluentQt/StatusInfo.h>
using namespace fluent::status_info;
auto* small = new ProgressRing(this);
small->setRingSize(ProgressRing::ProgressRingSize::Small);
small->setIsActive(true);
auto* large = new ProgressRing(this);
large->setRingSize(ProgressRing::ProgressRingSize::Large);
large->setIsActive(true);import fluentqt
small = fluentqt.ProgressRing(row)
small.setRingSize(fluentqt.ProgressRing.ProgressRingSize.Small)
small.setIsActive(True)
medium = fluentqt.ProgressRing(row)
medium.setRingSize(fluentqt.ProgressRing.ProgressRingSize.Medium)
medium.setIsActive(True)
large = fluentqt.ProgressRing(row)
large.setRingSize(fluentqt.ProgressRing.ProgressRingSize.Large)
large.setIsActive(True)API
DeclarationNo matching API members.
fluent::status_info::ProgressRing
Inherits QWidget · FluentElement · QMLPlus
Fluent circular progress indicator for active or indeterminate work.
Constructors
Properties
bool isActiveWhether progress animation is active.
ReadisActive()WritesetIsActive()NotifyisActiveChanged()bool animationEnabledWhether indeterminate progress motion is enabled.
ReadisAnimationEnabled()WritesetAnimationEnabled()NotifyanimationEnabledChanged()bool isIndeterminateWhether the progress indicator uses indeterminate motion.
ReadisIndeterminate()WritesetIsIndeterminate()NotifyisIndeterminateChanged()int minimumLower bound used when calculating determinate ring progress.
Readminimum()WritesetMinimum()NotifyminimumChanged()int maximumUpper bound used when calculating determinate ring progress.
Readmaximum()WritesetMaximum()NotifymaximumChanged()int valueCurrent determinate ring value between minimum and maximum.
Readvalue()WritesetValue()NotifyvalueChanged()ProgressRingSize ringSizeOuter size of the progress ring.
ReadringSize()WritesetRingSize()NotifyringSizeChanged()qreal strokeWidthStroke width used by the progress ring.
ReadstrokeWidth()WritesetStrokeWidth()NotifystrokeWidthChanged()ProgressRingStatus statusSemantic status used to choose visual treatment.
Readstatus()WritesetStatus()NotifystatusChanged()bool backgroundVisibleWhether the inactive ring track is painted behind progress.
ReadbackgroundVisible()WritesetBackgroundVisible()NotifybackgroundVisibleChanged()
Methods
bool isActive() constWhether progress animation is active.
void setIsActive(bool active)Whether progress animation is active.
bool isAnimationEnabled() constWhether indeterminate progress motion is enabled.
void setAnimationEnabled(bool enabled)Whether indeterminate progress motion is enabled.
bool isIndeterminate() constWhether the progress indicator uses indeterminate motion.
void setIsIndeterminate(bool indeterminate)Whether the progress indicator uses indeterminate motion.
int minimum() constLower bound used when calculating determinate ring progress.
void setMinimum(int minimum)Lower bound used when calculating determinate ring progress.
int maximum() constUpper bound used when calculating determinate ring progress.
void setMaximum(int maximum)Upper bound used when calculating determinate ring progress.
int value() constCurrent determinate ring value between minimum and maximum.
void setValue(int value)Current determinate ring value between minimum and maximum.
ProgressRingSize ringSize() constOuter size of the progress ring.
void setRingSize(ProgressRingSize size)Outer size of the progress ring.
qreal strokeWidth() constStroke width used by the progress ring.
void setStrokeWidth(qreal width)Stroke width used by the progress ring.
ProgressRingStatus status() constSemantic status used to choose visual treatment.
void setStatus(ProgressRingStatus status)Semantic status used to choose visual treatment.
bool backgroundVisible() constWhether the inactive ring track is painted behind progress.
void setBackgroundVisible(bool visible)Whether the inactive ring track is painted behind progress.
Signals
void isActiveChanged(bool active)Whether progress animation is active.
void animationEnabledChanged(bool enabled)Whether indeterminate progress motion is enabled.
void isIndeterminateChanged(bool indeterminate)Whether the progress indicator uses indeterminate motion.
void minimumChanged(int minimum)Lower bound used when calculating determinate ring progress.
void maximumChanged(int maximum)Upper bound used when calculating determinate ring progress.
void valueChanged(int value)Current determinate ring value between minimum and maximum.
void ringSizeChanged(ProgressRingSize size)Outer size of the progress ring.
void strokeWidthChanged(qreal width)Stroke width used by the progress ring.
void statusChanged(ProgressRingStatus status)Semantic status used to choose visual treatment.
void backgroundVisibleChanged(bool visible)Whether the inactive ring track is painted behind progress.
Enumerations
enum class ProgressRingSizeSmallMediumLarge
enum class ProgressRingStatusRunningPausedError
Destructors
Subclass interfaces
Methods
Inherited from fluent::FluentElement
Methods
static void setTheme(Theme theme)Updates the global theme and notifies active FluentElement instances.
static void setThemeDeferred(Theme theme)Schedules a visible-first batched theme refresh without blocking the current interaction.
static Theme currentTheme()Returns the currently active global theme.
static bool themeUsesDarkAppearance(Theme theme)Returns whether a theme uses dark-backed chrome and material tokens.
static void refreshTheme()Re-broadcasts the current theme to repaint after a design-token change.
static int themeGeneration()Monotonic counter bumped on every theme change, for staleness checks.
Theme effectiveTheme() constResolves the theme used by this element, honoring an inherited QWidget override.
bool effectiveThemeUsesDarkAppearance() constReturns whether this element's effective theme uses dark-backed chrome.
bool setThemeOverrides(const QJsonObject& overrides)Component-facing token accessors.
QJsonObject themeOverrides() constReturns this element's authored overrides.
void clearThemeOverrides()Restores all token fields to global theme defaults.
const Colors& themeColorsRef() constNon-copying access to the active color set (for hot paint paths).
Material::AcrylicToken themeAcrylic() constMaterial, elevation, and adaptive layout tokens.
QColor themeBackdrop(bool active) constWindow-chrome backdrop color for the given activation state.
virtual void onThemeUpdated()Called after the global theme changes.
Enumerations
enum ThemeGlobal visual theme used when resolving design tokens.
Light = 0Dark = 1HighContrast = 2
Types and aliases
struct ColorsDesign token snapshots returned to components.
Inherited from fluent::QMLPlus
Methods
AnchorLayout::Anchors* anchors()Returns mutable anchors for the QWidget host.
void setState(const QString& name)Applies a named state, or clears state when name is empty.
void addState(const QMLState& state)Registers or replaces a named state definition.
void evaluateStates()Reevaluates conditions; the first registered true condition wins.
QMLPlusRuntime* runtime()Returns the lazy host-owned state observation object.
void setAnchors(const AnchorLayout::Anchors& anchors)Replaces all host anchors and invalidates the parent layout.
void resetAnchors()Clears all host anchors and invalidates the parent layout.
void bind(const char* targetProp, QObject* source, const char* sourceProp, PropertyBinder::Direction dir = PropertyBinder::OneWay)Binds a source property to a property on the QWidget host.
BindingHandle bindManaged(const char* targetProp, QObject* source, const char* sourceProp, PropertyBinder::Direction direction = PropertyBinder::OneWay, BindingOptions options = {})Installs a managed direct binding on this QWidget host.
BindingHandle bindComputed(const char* targetProp, const QVector<BindingDependency>& dependencies, std::function<QVariant()> evaluate, BindingOptions options = {})Installs an explicit-dependency C++ expression on this QWidget host.
void addTransition(const StateTransition& transition)Registers a state transition in precedence order.
void setBehavior(const char* propertyName, const PropertyAnimation& animation)Sets the default animation for this host's managed property writes.
void clearBehavior(const char* propertyName)Removes the default animation for future managed writes.
bool writeProperty(const char* propertyName, const QVariant& value)Writes a host property through Behavior without removing its binding.
All inherited Qt members:QWidget