[PyKDE] Problem with layout iterators

Phil Thompson phil at riverbankcomputing.co.uk
Sat Jul 9 22:44:26 BST 2005


On Saturday 09 July 2005 5:03 pm, Giovanni Bajo wrote:
> Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
> > How? Qt doesn't provide the type information that would be needed to do
> > this.
>
> Can't you pretend all those virtual functions are pure, so that they're
> invoked virtually? At least the iterator will work correctly, even if
> Python doesn't know its real type.

The iterator works fine. The problem is working out the specific type of the 
QLayoutItems it returns.

Having looked at the implementation of QLayoutItem, QWidgetItem etc. it looks 
like it will be possible to use QLayoutItem::widget() etc. to determine a 
more specific type.

Phil




More information about the PyQt mailing list