hi,
I am encountering problem of out of memory when compiling my application, i think this is due to many images that I added into resource file along with the qml files.
I read somewhere that to resolve this we don't need to add the images into resource file, however i am having problem displaying the images.
i have tried this
view.
rootContext()->setContextProperty
("imagePath",
"file://" + QCoreApplication::applicationDirPath() + "/images/");
view.rootContext()->setContextProperty("imagePath", "file://" + QCoreApplication::applicationDirPath() + "/images/");
To copy to clipboard, switch view to plain text mode
and put the images where the executable file is located, but it didn't display the images still
PS. I created a javascript function into singleton file which returns the path url
function drawImage(name) {
var url = imagePath + name;
return url;
}
function drawImage(name) {
var url = imagePath + name;
return url;
}
To copy to clipboard, switch view to plain text mode
Thanks
***
it should have 3 forward slashes next to file:
Bookmarks