[PyQt] Newbie resizing dock widgets question

2011-04-25 Thread Sarah Mount
In designer-qt4 the object inspector, widget box and so on seem to be QDockWidgets. I'm making a GUI in Designer that I want to be similarly structured. In designer the edge of each QDockWidget can be grabbed with the mouse and resized, but in my GUI this isn't possible. I *think* I've set all of t

Re: [PyQt] QModelIndex.internalPointer

2011-04-25 Thread Andreas Pakulat
On 25.04.11 10:05:17, Jeremy Sanders wrote: > Hi - I've hit several crashes with Qt's model code with PyQt. > > Can someone clear up the ownership rules for objects given to > QAbstractItemModel.createIndex and accessed with > QModelIndex.internalPointer? > > I tried creating a layer of indirec

Re: [PyQt] QModelIndex.internalPointer

2011-04-25 Thread Jeremy Sanders
Hans-Peter Jansen wrote: > You miss to note your OS/Python/Qt/sip/PyQt versions in use. This is Ubuntu Maverick (pyqt 4.7.4, sip4 4.10.5). > Phil fixed some related issues in one of the latest sip/PyQt releases > (hint, hint..). Yes - I'm usually restricted to what distributions include in thei

Re: [PyQt] QModelIndex.internalPointer

2011-04-25 Thread Hans-Peter Jansen
On Monday 25 April 2011, 11:05:17 Jeremy Sanders wrote: > Hi - I've hit several crashes with Qt's model code with PyQt. > > Can someone clear up the ownership rules for objects given to > QAbstractItemModel.createIndex and accessed with > QModelIndex.internalPointer? > > I tried creating a layer of

[PyQt] QModelIndex.internalPointer

2011-04-25 Thread Jeremy Sanders
Hi - I've hit several crashes with Qt's model code with PyQt. Can someone clear up the ownership rules for objects given to QAbstractItemModel.createIndex and accessed with QModelIndex.internalPointer? I tried creating a layer of indirection when using createIndex, e.g. class Indirect(object):