Skip to content

Conversation

@tlecomte
Copy link
Owner

@tlecomte tlecomte commented Aug 14, 2025

All audio widgets are now QML components. This required migrating the delay estimator, the generator, and refactoring the Pitch tracker.

The benefit is that now the creation of the visual part of the audio widget is centralized in dock.py, instead of being copied over in every widget. Also, it promotes a clearer separation between viewmodel and view.

This will allow to continue the conversion of Friture to be a full QML app.

We choose the Fusion style for Qt Quick Controls, used in the Generator view. The Fusion style is appropriate for Desktop apps, and works fine with Dark or White themes as set in the system.

We load the QML using QQuickView, which exposes a setInitialProperties method, unlike QQuickWidget. setInitialProperties allows to pass the viewmodel before the component is initialized, which removes the need for the Loader that was used with QQuickWidget.

All audio widgets are now QML components. This required migrating the delay estimator, the generator, and refactoring the Pitch tracker.

The benefit is that now the creation of the visual part of the audio widget is centralized in dock.py, instead of being copied over in every widget. Also, it promotes a clearer separation between viewmodel and view.

This will allow to continue the conversion of Friture to be a full QML app.

We choose the Fusion style for Qt Quick Controls, used in the Generator view. The Fusion style is appropriate for Desktop apps, and works fine with Dark or White themes as set in the system.
@tlecomte tlecomte merged commit 45a3127 into master Aug 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants