PDA

View Full Version : Image is visible in QDesigner and invisible at run-time



QPlace
14th May 2009, 03:38
I assigned pixmap to a label. It is visible in designer but is invisible in runtime. I tried to change the format from jpeg to png with no effect - it is visible in designer and invisible in runtime. There is no code that I wrote to manage visibility of QLabel and no property that I changed in QLabel in design mode (by the way, I don't see "isvisible" property in property editor)

I am sure I overlooked smth, but can't figure out what causes this. Any help to figure this out will be greatly appreciated.

munna
14th May 2009, 05:07
Is the image part of your resources?

aamer4yu
14th May 2009, 05:26
Deisgner knows about the path of the image. While when you run the app, it doesnt know.
As Munna said, make that image as part of your qrc

QPlace
14th May 2009, 17:34
Thank you guys. That was almost it. I created a custom resource file for a dialog in QDesigner but forgot to include it in msvc project.