Important: Please read the Qt Code of Conduct -

Question about qrc and file structure

  • I am trying to organize the files and I have some doubts about it.

    I have the following file structure:

    └── src
        ├── main.cpp
        ├── qml
        │   ├── main.qml
        │   └── PipMainButtonTab.qml
        └── qml.qrc

    The qml.qrc file is:

        <qresource prefix="/">

    The only way to get the program works is importing the qml directory in main.qml

    import "qrc:/qml"

    Why I have to import the qml directory if main.qml is in this folder?

Log in to reply