feat(widget_state_manager): state manager for single widget
Description
This merge request introduces a reusable WidgetStateManager
class that saves and loads the state of Qt widgets to and from an INI file. An ExampleApp
is included to demonstrate how the manager can be used to preserve user input for widgets such as QLineEdit
, QSpinBox
, and QCheckBox
, however can be used for any custom widget which has defined QProperties.
Related Issues
closes #203 (closed)
Type of Change
- Addition of a new class for widget state management.
- Creation of an example Qt application to showcase its usage.
Potential Side Effects
- The
WidgetStateManager
relies on each widget’sobjectName()
property for recursive state storage. If widgets lack anobjectName()
, the state might not be preserved. - Storing or loading state involves file operations. Users must have write permissions in the chosen directory.
Edited by wyzula_j