No, not really. Haven't tried it with QLabels. I use graphics views and they
display jpg files without a problem.



On 3/14/08, Dawid Sip <[EMAIL PROTECTED]> wrote:
>
> Yes, i checked the and it is fine. Im not trying to load it with
> "classpath:". What i do is call an OpenFileDialog for the user to point
> the file and in return I get a string: "String fileName =
> QFileDialog.getOpenFileName(this);"
> This string i than check with: "QMessageBox.information(this, fileName,
> fileName);" And its good. Than its fed to "ui.label.setPixmap(new
> QPixmap(fileName));"
> The images path is d:\06-02-08_1054_Small.jpg
>
> I just discovered that it simply wont work with a .jpg format, but it
> works for .png.. I also noticed this problem in the Image Viewer demo of
> Qt Jambi. It wont show .jpg files. Any thoughts?
>
> Dave
> > This works for me (Gentoo Linux 32bit, QtJambi 4.3.3_01).
> > Are You 100% sure the "fileName" exists?
> > Have You been trying to print the fileName value to i.e. stdout?
> > --
> > Tomasz 'Trog' Welman
>
> Where is the file located? Are you trying to load it from the classpath
> with
> "classpath:"? I don't have any problems loading a pixmap from the
> filesystem
> of out of a jar file on the classpath. But loading it directly from the
> classpath (not in a jar-file) doesn't work for me.
>
> /Dimitri
>
>
>
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to