Qt World Summit: Submit your Presentation

Missing prefix in QML

  • Hi,
    I created an empty Qt Quick application using File > New File or Project > Qt Quick Application - Empty.
    I wanted to create a prefix so I right clicked on Qml.qrc and chose Add prefix. In the subsequent dialog window I entered /files in the prefix field and I left the language field empty.
    After clicking OK nothing happened (no resources showed and no error message either).
    Please help me figure out what is wrong. Thank you.

  • Hi there, welcome to Qt Forum.

    Have you tried to insert the prefix by resource editor ?


    Or directly writting in plain text using QRC sintaxe ?

        <qresource prefix="/">
        <qresource prefix="/files">

  • @KillerSmath
    Thank you. This worked.

Log in to reply