Expand description
day-toolkit-qt — the Qt 6 Widgets backend (linux-qt / macos-qt; DESIGN.md §9), over
the day-toolkit-qt-sys C++ shim. Handle = QtHandle(*mut QWidget); absolute geometry; toggle is a
QCheckBox (Qt Widgets has no native switch — an explicitly documented divergence).
Re-exports§
pub use ext::*;
Modules§
- ext
- Tweaks (docs/tweaks.md): RAW access to the
QWidget*behind a Day-created piece.
Structs§
Statics§
- RENDERERS
- Renderers registered by external Day Piece crates (§8.2).
Functions§
- day_
qt_ ⚠open_ file - Qt’s macOS
QFileOpenEvent; command-line activations on other OSes use day-core. - emit
- icon_
args - The icon spec a piece shim hands
day_qt_icon_new(docs/extending.md): seetoolbar::icon_args. An item’s icon as the(spec, QStyle fallback)pair the shim’s icon resolution takes (day_qt_toolbar_icon): a symbol astheme-name|outline.svg(the desktop’s themed icon, else Day’s own outline), a bundled image as its resolved file path (no theme name; Qt loads it through the lookup’s file branch), plus the standard pixmap to fall back on (-1 for none). Public for a piece that draws icons in a shim of its own (day_qt_icon_new). - lifecycle_
supported - Which lifecycle phases this desktop backend delivers (docs/lifecycle.md): the universal set.
constsoday::require_lifecycle!can reject unsupported phases at compile time. - qt_
style - Point size + the style’s inherent weight for a logical
Font(Qt has no semantic text styles; we approximate the platform typographic scale, matching Apple’s text-style sizes for consistency). Public for standalone pieces (docs/extending.md), which have to resolve the same scale.