amrit_neo
amrit_neo

Reputation: 1759

Changing the Label images in Qt

How to change the label image in Qt when the application is running. I am able to change the image of label by adding an icon resource file to that in the code it self. But I want that user can browse the image & can set it in the label. It can be changed by user. So which class I have to use to make it work?

Thanks.

Upvotes: 1

Views: 831

Answers (1)

Stephen Chu
Stephen Chu

Reputation: 12832

Try setPixmap

You can create a pixmap from a file.

Upvotes: 3

Related Questions