Solved 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 ?
<RCC> <qresource prefix="/"> <file>main.qml</file> </qresource> <qresource prefix="/files"> <file>file1.qml</file> <file>file2.qml</file> <file>file3.qml</file> </qresource> </RCC>
-
@KillerSmath
Thank you. This worked.