Skip to content

Conversation

lilyinstarlight
Copy link
Contributor

@lilyinstarlight lilyinstarlight commented Feb 18, 2022

The build change allows using Qt5 WebEngine for the Tau/PhX widget. Even though we only want to support Qt6 WebEngine, it still works just fine with Qt5 and this is a low-maintenance change and won't affect official builds (also the feature is disabled by default). I'm mostly wanting this so I can continue to play with the widget on my system which does not yet support Qt6

The second change fixes Qt object parenting and layout assignment which were causing the following runtime errors in the console

Object destruction order error, fixed by reversing the order the objects are assigned to the parent:

Release of profile requested but WebEnginePage still not deleted. Expect troubles !

Layout attempted to be overridden error, fixed by only setting the layout for PhxWidget (via the QBoxLayout constructor) once:

QLayout: Attempting to add QLayout "" to PhxWidget "", which already has a layout

Edit: CI will be failing until erlef/setup-beam#91 is merged because it looks like the Windows builds default to windows-2022 now, for which support in the BEAM action is not merged yet

Fixes messages like

```
Release of profile requested but WebEnginePage still not deleted. Expect troubles !
```

indicating webview destruction order issues and

```
QLayout: Attempting to add QLayout "" to PhxWidget "", which already has a layout
```

indicating a widget layout was attempted to be overridden
@samaaron samaaron merged commit 88f4462 into sonic-pi-net:dev Feb 19, 2022
@samaaron
Copy link
Collaborator

Yeah, good call - looks like Qt6 on Linux is still a little way off :-)

@paulo-ferraz-oliveira
Copy link

setup-beam v1.11.0 is released, and supports Windows'22 now.

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.

3 participants