Yes, it’s either “:/prefix/file” or “qrc:/prefix/file” (both should work the same, but rarely do). You can try passing the path without any reference to QRC, though. Since you are loading QML from the resource file, the engine already assumes all the paths are QRC-based, too. So you can try with simply:
Image {
source: "sprites/myImage.png"
}
↧









