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

Enabling the use of QML for Tiled extensions #4126

Open
bjorn opened this issue Dec 21, 2024 · 0 comments
Open

Enabling the use of QML for Tiled extensions #4126

bjorn opened this issue Dec 21, 2024 · 0 comments
Labels
feature It's a feature, not a bug. Winter Of Code 4.0 Possible project for Winter Of Code 4.0

Comments

@bjorn
Copy link
Member

bjorn commented Dec 21, 2024

As of Tiled 1.11, extensions can be written in plain JavaScript files or as JavaScript modules. However, Tiled actually uses a QQmlEngine internally, which is able to load QML files as well.

See Next generation Tiled extensions for more information about this idea.

When the necessary libraries and plugins are available, Qt.createComponent can already be used to instantiate QML types. A nicer integration should be possible when Tiled recognizes QML files and creates QQmlComponent instances with those files and creates objects from them.

@bjorn bjorn added feature It's a feature, not a bug. Winter Of Code 4.0 Possible project for Winter Of Code 4.0 labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug. Winter Of Code 4.0 Possible project for Winter Of Code 4.0
Projects
None yet
Development

No branches or pull requests

1 participant