https://doc.qt.io/archives/qt-5.11/qpainter.html#drawImage-5
void QPainter::drawImage(const QRect &rectangle, const QImage &image)
Draws the given image into the given rectangle.
They have used the word draw for a reason. I believe if I have an image I can myself put it in a rectangle. I don't need a specialized function for that.
What does this function do besides putting the image in the rectangle?
Is it somehow more efficient than the following?
Rectangle
{
height: 100; width: 100
Image
{
source: "xyz.png"
}
}