Hi,

I am playing around with Qt Jambi and trying to load a simple JPG picture. Normally this shouldn't be a problem. This is the code:

Qt Code:
  1. QPixmap img = new QPixmap("/Users/oliver/dev/LDV/QtJambi/res/mac.jpg");
  2. System.out.println("Image loaded: " + img.width() + "x" + img.height());
To copy to clipboard, switch view to plain text mode 


The point here is, the size of the picture is allways 0 and no image is displayed. I also tried to use a relative path but this didn't work either.

Does someone has a hint or maybe already tried simmilar things with Qt Jambi?

Thanks,
Olli