Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to fix qml imports #9561

Merged
merged 2 commits into from
May 15, 2024
Merged

try to fix qml imports #9561

merged 2 commits into from
May 15, 2024

Conversation

strseb
Copy link
Collaborator

@strseb strseb commented May 14, 2024

Description

i do think setting the policy to OLD broke things, my bad 🙏 .

qt_policy(SET QTP0001 NEW)

-> So let's keep it at new and backport the changes of this policy to 6.2.4
->Set the resource prefix /qt/qml, it's the default value after 6.5
-> Add /qt/qml to the path by default.

This seems to fix everything on Windows (6.2.4/6.6.0) tested.

@brizental
Copy link
Contributor

We should undo the NO_PLUGIN_OPTIONAL thing I did before if this is the fix.

Copy link
Member

@lesleyjanenorton lesleyjanenorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worksonmymachine-1

Do we still need the NO_PLUGIN_OPTIONAL change from #9531 ?

@mcleinman
Copy link
Collaborator

mcleinman commented May 14, 2024

This works for me on Android for 6.6. Thanks!

@oskirby
Copy link
Collaborator

oskirby commented May 14, 2024

Works for my MacOS machine (tested both Qt 6.2.4 and Qt 6.6.3).

Copy link
Collaborator

@oskirby oskirby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a thought for some future cleanup - we don't really need to use the path so prominently and in many cases we can load QML objects by type rather than URL.

For example, a StackView::push() can accept an Item, Component or url so in theory something like stackView.push(ViewAboutUs{..}) should work too.

But that's too much work for now. Let's merge this and get the breakage fixed.

@strseb strseb enabled auto-merge (squash) May 15, 2024 13:05
@github-actions github-actions bot added the 🛬 Landing This PR is marked as "auto-merge" label May 15, 2024
@strseb strseb merged commit 61a5fc4 into main May 15, 2024
116 checks passed
@strseb strseb deleted the basti/try_fix_qml branch May 15, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛬 Landing This PR is marked as "auto-merge"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants