Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting an image in GUI using QT Designer

Tags:

qt

qt-designer

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.

like image 722
User123 Avatar asked Feb 16 '15 07:02

User123


1 Answers

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!

like image 67
Diego Avatar answered Sep 27 '22 01:09

Diego