[PyQt] display QImage using QtPainter

2011-01-05 Thread Massimo Di Stefano
hello All, i'm tring to use QtPainter to display a QImage object this is my paint event : def paintEvent(self, event): painter = QPainter(self) painter.fillRect(event.rect(), QBrush(Qt.black)) image = self.receiver.getimage() print image , 'passed'

Re: [PyQt] display QImage using QtPainter

2011-01-05 Thread Massimo Di Stefano
Hi All, i fixed my problem ... the Qt code works fine i haven't changed it the problem was during the conversion between PIL image Object to QImage Object thanks to some web search i fixed it adding the 2 function : open() and __PIL2Qt() using them i'm now able to performs some image