Error: Cannot open: "qrc:/images/Logo.png"
-
Hi! I am trying to load an image in Qt Quick Designer. I first tried to add it in the Quick Designer:
the automaticly generated code was:
But when I tried to run the programm there always was the Message that the image couldn't be opened.
So I tried to implement it with a .qrc file and corrected the code to:
This also doesen't work. Does anyone know what the problem is? -
Hi! I am trying to load an image in Qt Quick Designer. I first tried to add it in the Quick Designer:
the automaticly generated code was:
But when I tried to run the programm there always was the Message that the image couldn't be opened.
So I tried to implement it with a .qrc file and corrected the code to:
This also doesen't work. Does anyone know what the problem is? -
@xani https://doc.qt.io/qt-6/designer-resources.html
You may need to create your qrc file first.