This example shows the simplest usage of the Image component to display an image.
The Image source
property is a url type that can be either a file with an absolute or relative path, an internet URL (http://
) or a Qt resource (qrc:/
)
import QtQuick 2.3
Rectangle {
width: 640
height: 480
Image {
source: "image.png"
}
}