Skip to content

WaffleChart

10×10 part-to-whole grid.

import QWinUI3.Extras.Charts · src/extras/QWinUI3/Extras/WaffleChart.qml

Category: Charts & gauges · Library: v3.56

← Component index

Gallery: WaffleChart — src/gallery/pages/WaffleChartPage.qml

Python: same QML type after qwinui3.setup_engine() — Python API.

Extends Control.

Example

WaffleChart {
    slices: [
        { value: 42, label: qsTr("Used") },
        { value: 58, label: qsTr("Free") }
    ]
}

Notes

Experimental 100-cell waffle. Prefer DonutChart for a compact part-to-whole.

API

Properties

Name Type Description
slices var —
values var —
title string —
emptyText string —
gridSize int —
interactive bool —
isInteractive alias —
hoverIndex int —
isEmpty bool —

Signals

No custom signals (use inherited signals from the base type).

Methods

Signature Description
requestRedraw() —

Inherited from Control

Also available (base type / Qt Quick Controls):

  • padding
  • font
  • background / contentItem

Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.