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

R&D: XML (*.qrc) support in qrc! macro #91

Open
ratijas opened this issue May 10, 2020 · 0 comments
Open

R&D: XML (*.qrc) support in qrc! macro #91

ratijas opened this issue May 10, 2020 · 0 comments
Labels
A-macros Area: Macro code generation C-feature-request Category: A feature request, i.e: not implemented / a PR. E-easy Call for participation: Experience needed to fix: Easy / not much

Comments

@ratijas
Copy link
Collaborator

ratijas commented May 10, 2020

This is a tracking issue for a planned Research & Development activity.

Tasks

Investigate the source code and documentation of Resource Compiler (rcc) tool from Qt. Can the qrc! implementation be extended to support XML resource files (*.qrc)? Which other features of the rcc tool can be ported into the qrc! macro?

Why?

I could think of two main reasons where you would want to use XML .qrc resource file:

  1. Reuse already existing XML. Rewriting it into Rust "native" macro syntax just because you can? Nah, leave it for RESF.
  2. Interoperability with Qt Creator. Qt Creator doesn't like it when QML files are just lying around. Providing a qrc definition improves its navigation, code insights etc.

Links

Documentation: https://doc.qt.io/qt-5/rcc.html
Source code: https://code.qt.io/cgit/qt/qtbase.git/tree/src/tools/rcc

@ratijas ratijas added A-rust Area: Rust glue C-feature-request Category: A feature request, i.e: not implemented / a PR. E-easy Call for participation: Experience needed to fix: Easy / not much A-macros Area: Macro code generation and removed A-rust Area: Rust glue labels Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: Macro code generation C-feature-request Category: A feature request, i.e: not implemented / a PR. E-easy Call for participation: Experience needed to fix: Easy / not much
Projects
None yet
Development

No branches or pull requests

1 participant