Inserting an image in GUI using QT Designer

User123 picture User123 · Feb 16, 2015 · Viewed 57.8k times · Source

I am new to QtDesigner. I wanted to know how to insert an image in the GUI using QT Designer. I am trying to add a logo. Help would be appreciated.

Answer

Diego picture Diego · Mar 14, 2017

You can start inserting a label. Next, you right click on it an then click "change rich text...". A new window will pop-up. Click on the figure Icon "Insert figure".

Insert Figure

Now, you have to create a resource file. Click on the Pencil button. Next, click on the "New resource file" button.

enter image description here

Choose a name and a folder (your working directory would be a good choice) to save it.

Now, click on the "Add prefix" button.

enter image description here

Choose a name for it.

Then, click on the "Add file" button.

enter image description here

And there you go! Click "OK" and you figure should be there. Just be aware that you should resize your figure to a proper size before using it.

Hope it helps!