Skip to content

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

Open
@ratijas

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: Macro code generationC-feature-requestCategory: A feature request, i.e: not implemented / a PR.E-easyCall for participation: Experience needed to fix: Easy / not much

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions