parent id fix
Description
The parent_id is now a property that always fetches the current parent from the actual BEC widget, ensuring consistency. This removes the need to manually specify the parent and instead relies more on Qt's built-in parent resolution. It should also help prevent the occasional leakage of items with incorrect parents.
All affected widgets have been updated accordingly.
Related Issues
closes #544 (closed),
Type of Change
-
fix: Added
deleteLatertoBECDockto prevent leakage when closed (PyQtGraph bug). -
fix: The argument bundle in
ScanControlremoval now also calls.close()in addition to.deleteLater. -
fix:
parent_idis now a property dynamically fetched fromBECConnecterwhen accessed. -
fix: Widgets can now be flagged as
root_widgets, allowing them to skip the main window when used via the CLI (e.g.,BECDockArealaunched withIPythonClient).
Potential Side Effects
I believe all hardcoded parent_id usages have been removed—I’ve scanned the entire repository to ensure this.
Additional Comments
Please test the CLI thoroughly and check whether any objects are still leaking into the namespace.