[PyQt] Problem with overlapping QRectF

2011-02-11 Thread shi dingan
Hello, I'm trying to draw some colored rectangles with PyQt. I have created the following class: class MappyZone(QGraphicsItem): def __init__(self, x1, y1, x2, y2, color): super(MappyZone, self).__init__() self.rect = QRectF(x1, y1, x2 - x1, y2 - y1) self.color = color

[PyQt] Changing widget type dynamically

2011-02-11 Thread Gaƫtan Podevijn
Hello, I'm looking for a way to change a widget's type dynamically. So, for example, I have : self.filetable = QTableView() and during the execution, I would like to change it to a QTreeView(). How should I do to do something like : self.filetable = QTableView() (...) if aVar == 3: self.fileta

Re: [PyQt] signal

2011-02-11 Thread John Beuving
Hi, I have the following error when running my C++ code from python. The C++ code is a multiple inheritance class. It is a worker thread which has to emit events. Why doesn't this work ? File "test.py", line 165, in __init__ self.didSomething.connect(self.handletrigger) TypeError: pyqtS

[PyQt] [SIP] sip and template

2011-02-11 Thread Kermit
hi, since my last post, i've lot difficult to implement a "simple" binding with sip i try to bind the good ilmBase librairy. i extract a exemple with error with sip // C+++ File #ifndef INCLUDED_IMATHVEC_H #define INCLUDED_IMATHVEC_H namespace Im