[PyQt] Problem displaying images in QLabel (Newbie)

bar tomas bartomas at gmail.com
Mon Mar 1 13:39:11 GMT 2010


You were right about the wrong path. Many thanks!

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


More information about the PyQt mailing list