RE: [PyQt] cleaning up after removing items from layout

2009-11-07 Thread Lee Harr
Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 > Could you post the whole code in py file? The actual code is here: http://code.google.com/p/pybotwar/source/browse/qt4view.py The item that is getting added is the class at line 362. And t

[PyQt] cleaning up after removing items from layout

2009-11-07 Thread Lee Harr
I have a fairly complex layout created with Qt Designer. In one area, there is a QVBoxLayout which I fill up with items at runtime. It works fine, resizes nicely, looks good. The problem is that at some point I want to remove all of those items and fill it up again with all new items. The new i

[PyQt] QGraphicsView rubberband traces

2009-11-07 Thread Ahmet Emre Aladağ
Hi All, I see leftover (rectangle) footprints/traces when I use rubberband as dragmode to make a selection on GraphicsView. There are lots of rectangles and they don't disappear as I enlarge my selection. Just like re-painting doesn't work. When I move another item over those leftovers, they are r

Re: [PyQt] newbie questions...

2009-11-07 Thread Darren Dale
On Thu, Aug 14, 2008 at 3:59 PM, Phil Thompson wrote: > On Tue, 12 Aug 2008 20:31:37 +0100, Chris Withers > wrote: >> Phil Thompson wrote: That seems weird to put it politely. I would have thought they both had >> the same interfaces? >>> >>> It's not a technical limitation. It is to pr

Re: [PyQt] Regressions on destruction of objects?

2009-11-07 Thread Phil Thompson
On Sat, 07 Nov 2009 15:52:48 +0100, Pierre Raybaut wrote: > FYI, with PyQt4 v4.6.1, the matplotlib's Qt4 backend is no longer usable > interactively because the 'destroyed()' signal is not emitted when > matplotlib's figure (QMainWindow instance) is closed (and destroyed, > thanks to the Qt.WA_

Re: [PyQt] Regressions on destruction of objects?

2009-11-07 Thread Pierre Raybaut
FYI, with PyQt4 v4.6.1, the matplotlib's Qt4 backend is no longer usable interactively because the 'destroyed()' signal is not emitted when matplotlib's figure (QMainWindow instance) is closed (and destroyed, thanks to the Qt.WA_DeleteOnClose attribute). In other words, one can only show one fi

Re: [PyQt] Re: problem with QAbstractItemModel

2009-11-07 Thread Vicent Mas
On 2009-11-07 Vicent Mas said: > On 2009-11-07 Linos said: > > ... > > Hi, > > in the qt examples from qt 4.5 documentation you can see they use this > > in the model: > > http://doc.trolltech.com/4.5/itemviews-simpletreemodel-treemodel-cpp.html > > > > QModelIndex TreeModel::index(int row,

Re: [PyQt] Re: problem with QAbstractItemModel

2009-11-07 Thread Vicent Mas
On 2009-11-07 Linos said: > ... > Hi, > in the qt examples from qt 4.5 documentation you can see they use this > in > the model: > http://doc.trolltech.com/4.5/itemviews-simpletreemodel-treemodel-cpp.html > > QModelIndex TreeModel::index(int row, int column, const QModelIndex > &parent)

Re: [PyQt] Re: problem with QAbstractItemModel

2009-11-07 Thread Linos
Vicent Mas escribió: On 2009-11-06 Baz Walter said: ... your implementation of QAbstractItemModel.index is going to get called *a lot* and in many unforseen ways. Yes, but it is a general fact, not something that happens to my particular implementation, right? i think a more sane imple