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

QML over HTTP server #19

Open
NeonDaniel opened this issue Jul 14, 2023 · 1 comment
Open

QML over HTTP server #19

NeonDaniel opened this issue Jul 14, 2023 · 1 comment
Labels
question Further information is requested

Comments

@NeonDaniel
Copy link
Member

When QML resources are served via HTTP paths (and possibly any non-file:// path), a special qmldir file is expected to exist for relative-path file resolution.

One potential option for Docker would be to bind the served resource directory to the host where the GUI client runs and translate paths to the host path (similar logic to how we currently translate paths to served URLs).

Alternatively, we just need to ensure that qmldir exists and is defined or else log some warning.

There may be other limitations to non-local resources for Qt and other GUI infrastructures to consider.

@mikejgray
Copy link

Worth calling out - if you aren't directly rendering JSX (which you shouldn't), the files need to be accessible to the web server. That probably means a lightweight Flask or FastAPI service from which the files can be retrieved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants