Skip to content

Gallery

This page collects every screenshot of the demo window. They are not maintained by hand: the example examples/all_widgets_demo exports all of them with a single command, so re-running it after a widget or layout change keeps the docs in sync.

Demo language

The demo's UI text is Chinese; the widgets themselves contain no hard-coded copy and can be translated by the integrator.

1
2
# Run from the repository root (on Windows, make sure Qt's bin directory is on PATH)
dawidgets_all_widgets_demo --export-gallery docs/images/gallery

The command writes four kinds of images:

Directory Content
all-widgets-demo.png Main window, first tab
tabs/NN-<slug>.png One screenshot per tab
widgets/<scene-id>.png One screenshot per widget scene (used by docs)
widgets/*-popup.png Popup, color menu, and item-pick dialog close-ups

Main Window

DAWidgets all-widgets demo main window

Nine tabs gather every public widget in one window, and each tab is further organized with DACollapseWidget sections — convenient both for trying widgets out and for screenshot archiving.

Selector / Tags

Selector / Tags tab: DAChip, DAChipsEdit, DAFlowLayout, DASelectComboBox

Collapse

Collapse tab: accordion/non-accordion containers and collapse item variants

Color

Color tab: color picker, Office palette, color grid, color menu

Drawing Style

Drawing Style tab: brush/pen style combos, brush/pen editors, shape and font panels

Alignment

Alignment tab: text alignment, alignment buttons, and 9-grid position

Utility

Utility tab: file path, time format, property item, undo history, overlay, wait cursor

Item Selection

Item Selection tab: check list, forced allow-list, selected items, pick dialog, string list, color scale

Text

Text tab: read-only, monospace, wrap, and toolbar toggles

Filtering

Filtering tab: tree model filtered by text, parents kept

Some key states live in popups, so they are exported separately:

DASelectComboBox candidate popup

DAColorMenu popup

DAItemListPickDialog

Regenerating the Screenshots

1
2
3
# Windows (PowerShell): add Qt's bin directory to PATH, then run
$env:Path = "D:/Qt/6.7.3/msvc2019_64/bin;$env:Path"
./build/examples/all_widgets_demo/Release/dawidgets_all_widgets_demo.exe --export-gallery docs/images/gallery

--export-gallery walks every scene in demoTabs(), writes widgets/<id>.png, and then exports each tab plus the main window. When adding a widget, append one DemoScene to the matching *Scenes() list in Tab*.cpp; the demo window and the screenshots update together.