Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to use image in qt qml
neda last edited by
i have a images folder in the root folder of program
when i use this code for use image in program
i have this error
QML Image: Cannot open: qrc:/name of pic.jpg
please guide me
clochydd last edited by clochydd
Hi and welcome to the devnet,
try using the full path with leading file://
speqtr last edited by
this error usually means "The resource (qrc:/name of pic.jpg) is not specified in a .qrc file."
Probably, you need to look at Qt Resource System article.
Most likely it will help you.