Mr_Blonde
14th September 2006, 15:45
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:
QPixmap img = new QPixmap("/Users/oliver/dev/LDV/QtJambi/res/mac.jpg");
System.out.println("Image loaded: " + img.width() + "x" + img.height());
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
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:
QPixmap img = new QPixmap("/Users/oliver/dev/LDV/QtJambi/res/mac.jpg");
System.out.println("Image loaded: " + img.width() + "x" + img.height());
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