R
R
Rishat Sultanov2016-12-11 12:03:13
Python
Rishat Sultanov, 2016-12-11 12:03:13

Why is the image not showing up when compiling?

Good afternoon, ladies and gentlemen.
I wanted to add a picture to the program in the UI.
I used QT Designer, uploaded a picture, screwed it up.
I loaded the UI in a Python file, but in the end I don’t see the picture.
8f768c47.jpg
Should be like this :(
693f13eD.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Jacob E, 2016-12-12
@Zifix

Try to create a .qrc resource file and put pictures there, set the appropriate path.

S
sitev_ru, 2016-12-11
@sitev_ru

Maybe this: Why does not draw a picture on another computer?

A
Alexander, 2016-12-11
@NeiroNx

Perhaps the problem is in the paths. It's best to use a relative path. The default designer uses absolute (sort of).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question