Picture Not Showing
I'm using a label in Qt Designer to display a picture to show up on the display. It shows up on the Designer page but it won't show up on my RPI after I build it. Everything else comes over find - clocks, calendar, etc.. Does anyone have an idea what the problem might be?
Can you post the code you use in designer to show the image in the QLabel?
If you use stylesheet to display the image in the QLabel, it's possible you modified the stylesheet in the code later?
If you set the picture in code, you can use something like that :
QByteArray data_pixmap; QPixmap pixmap; pixmap.loadFromData(data_pixmap); labelIcon->setPixmap(pixmap);
I load it directly using the pixmap selection under QLabel on the property editor. The picture shows up in Qt Designer but doesn't show on the forum when compiled - very strange.
Hi and welcome to devnet,
can you show your code?
I'm not using code just Qt Designer to try and load the image.