Well, you can print the output of this method: <a href="http://doc.trolltech.com/4.6/qfile.html#exists">http://doc.trolltech.com/4.6/qfile.html#exists</a>, after feeding it the path you're using at the moment..<div><br>
</div><div><a href="http://doc.trolltech.com/4.6/qfile.html#exists"></a><div><br></div><div><div class="gmail_quote">On Sun, Feb 28, 2010 at 9:27 PM, bar tomas <span dir="ltr"><<a href="mailto:bartomas@gmail.com">bartomas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Many thanks for trying to help me.<br>
I think the image file can be found because I can preview the form ok<br>
from QtDesigner.<br>
Do I need to do any steps to convert the image to a resource? (i dont<br>
really understand the difference between an image and a resource in<br>
Qt).<br>
Many thanks again for your patience.<br>
<br>
On Thu, Feb 25, 2010 at 3:00 PM, Nick Gaens <<a href="mailto:mail@nickgaens.com">mail@nickgaens.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> I'm guessing it has to do with the .png file not being found, but without<br>
> some example code, only supernatural powered humans can help you :-).<br>
><br>
> On Wed, Feb 24, 2010 at 4:11 PM, bar tomas <<a href="mailto:bartomas@gmail.com">bartomas@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>> I'm programming in PyQt using the Eric4 IDE and QtDesigner.<br>
>> I've created a QLabel containing a png image that displays fine when<br>
>> previewing the form in QtDesigner, but when I execute my python<br>
>> program from Eric, the image is not visible.<br>
>> Do you know what I'm doing wrong?<br>
>> Many thanks.<br>
>> _______________________________________________<br>
>> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
>> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
><br>
><br>
><br>
> --<br>
> Nick Gaens<br>
><br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nick Gaens<br>
</div></div>