It doesn't make that much sense to me.<div><br></div><div>> I did print QFile.exists('/.../.../pic1.png'); it outputs "True."</div><div><br></div><div>Ok, great, so there is a file there, named "pic1.png". What exactly is the meaning of three dots for a folders name? I am asking this, because you say in the next sentence:</div>
<div><br><div class="im">> I am doing pic = QPixmap('/../../pic1.png')</div><div class="im"><br></div><div class="im">As you can see, only two dots here, which would make more sense to me (that's why I suggested "../../pic1.png", since this is a more common construction).</div>
<div class="im">Can you elaborate why there are three dots in your path to the image?</div><div class="im"><br></div><div class="im">Secondly, did you take a look at the documents to use a resources-file?</div><div class="im">
<br></div>Nick</div><div><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 9:14 PM, dizou <span dir="ltr"><<a href="mailto:di_zou@yahoo.com">di_zou@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Can someone give me some more help about this?<br>
<br>
dizou wrote:<br>
><br>
> I did print QFile.exists('/.../.../pic1.png'); it outputs "True."<br>
<div class="im">> I am doing pic = QPixmap('/../../pic1.png') not<br>
> pic = QPixmap('../../pic1.png')<br>
><br>
><br>
> nickgaens wrote:<br>
>><br>
>> Did you try QFile.exists('/.../.../pic1.png') ?<br>
>><br>
>> I'm guessing you are trying to do:<br>
>><br>
>> pic = QPixmap('../../pic1.png') <- note the change in the path to the<br>
>> image file.<br>
>><br>
>><br>
>> Nick<br>
>><br>
>><br>
><br>
><br>
<br>
--<br>
</div>View this message in context: <a href="http://old.nabble.com/QGraphicsPixmapItem-not-showing-set-pixmap-tp27229352p27358788.html" target="_blank">http://old.nabble.com/QGraphicsPixmapItem-not-showing-set-pixmap-tp27229352p27358788.html</a><br>
<div><div></div><div class="h5">Sent from the PyQt mailing list archive at Nabble.com.<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>