[PyQt] PyQt(3) QDockWindow error

Phil Thompson phil at riverbankcomputing.co.uk
Mon Apr 2 14:10:09 BST 2007


On Wednesday 28 March 2007 3:01 pm, Giovanni Bajo wrote:
> On 3/28/2007 3:21 PM, V. Armando Sole wrote:
> > I have problems with the latest PyQt snapshot (February) and latest sip
> > snapshot.
> > The problems come from the fact QDockWindow.boxLayout() returns a
> > QSpacerItem instead of a QBoxLayout.
> >
> > At the python promt :
> >
> > import qt
> > app = qt.QApplication([])
> > w = qt.QDockWindow()
> > w.boxLayout()
> >
> > <qt.QSpacerItem object at 0x405a882c>
> >
> > That does not happen with the non snapshot versions of sip and PyQt3. My
> > problem is that I need the latest sip snapshots in order to avoid the
> > deadlocks in PyQt4 threads and the non-snapshot version of PyQt3 does
> > not compile with the latest sip snapshot.
>
> Yes, I had reported this problem to Phil Thompson already. The bug was
> introduced with this commit:
>
> 2007/02/25  0:19:29  phil
> Included Matt Newell's fix for making sure that a sub-class convertor
> returns the most specific type available.
>
> You can apply the attached patch to workaround the problem, until Phil
> provides the correct fix.

Actually Matt's change uncovered an existing bug in handling sub-class 
converters and multiple inheritance. Should be fixed in tonight's SIP 
snapshot.

Phil


More information about the PyQt mailing list