Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Creator: qml.qrc with different prefix, problem in design editor



  • Hi everybody,
    I'm working for a qt desktop application,
    for organization reasons we have to store our custom qml files in different qrc prefix (not only the root prefix "/").
    the qml.qrc file is structured in this way:
    Screenshot 2021-12-01 131236.png

    I can compile and run the application without problems,
    but when I go in the Design space of QtCreator I can't see the preview for example of main.qml
    and the designer tell me it can't find the qml files that are stored in the other prefix of qml.qrc.
    Screenshot (4).png
    Screenshot (3).png
    I include qml files in otyher qml.qrc prefix in this way:
    Screenshot 2021-12-01 132026.png
    My .pro file:
    Screenshot 2021-12-01 134530.png


Log in to reply