Many thanks aamer4yu for your reply.
The image name should be myImage.png.
Have a look please. When I proceed as followed, I do not need to add ".png", and I can have the image loaded. But I do not want to go this way.
image.load("C:/Users/Desktop/myImage");
image.load("C:/Users/Desktop/myImage");
To copy to clipboard, switch view to plain text mode
Even by writing myImage.png, there is no change.
I have created a label on which th image should appear as followed:
m_image->setPixmap(myImage);
m_image = new QLabel(this);
m_image->setPixmap(myImage);
To copy to clipboard, switch view to plain text mode
Bookmarks