Qt Storage and Reconstruction¶
Dock Area profile files are INI files. BEC reads and writes them through QSettings.
What the profile file contains¶
The profile file stores more than the dock arrangement. It combines several kinds of state in the same INI file:
- dock geometry and docking state
- a widget manifest that lists which widgets must be recreated
- widget state saved from Qt properties
- profile metadata such as timestamps and quick-selection state
- an optional screenshot preview
The dock layout itself is written through QSettings, together with Qt Advanced Docking System state and the widget manifest.
The per-widget state is restored through the Qt property system. BEC inspects readable, writable, and stored properties from each widget's meta-object, which is provided by QObject.
In practice, this means a profile can restore both the dock arrangement and widget settings, as long as those widget settings are exposed as Qt properties and are not explicitly skipped by the widget state manager.
How BEC reconstructs a profile¶
When a profile is loaded, BEC does the work in stages:
- It chooses the profile file to load.
- It reads the widget manifest from the INI file.
- It recreates the listed widgets.
- It restores the dock layout.
- It restores widget-specific settings from the stored Qt properties.
This is why a profile can bring back both the widget set and the state of those widgets, rather than only their positions on screen.