Helge Fredriksen wrote:
> in a QGraphicsPixmapItem causes QtJambi 4.4 to crash.
> 
Hi Helge,

I cannot seem to reproduce this with the following example. Could you 
please modify it to reproduce the error?

best regards,
Gunnar

import com.trolltech.qt.gui.*;

public class OverrideItemChangeInPixmapItem
{
     public static void main(String args[]) {
         QApplication.initialize(args);

         QGraphicsScene scene = new QGraphicsScene();
         QGraphicsView view = new QGraphicsView(scene);

         QGraphicsPixmapItem item = new QGraphicsPixmapItem(new 
QPixmap("c:\\images\\red_logo.png")) {
                 public Object 
itemChange(QGraphicsItem.GraphicsItemChange change, Object value)
                 {
                     System.out.println(change + ": " + value);
                     return super.itemChange(change, value);
                 }
             };

         scene.addItem(item);
         view.show();

         item.hide();
         item.show();

         QApplication.exec();
     }
}
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to