[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QObject.inherits and queryList (still broken in 4.2?)
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-02-25 9:15:00
Message-ID: 46872.82.68.80.137.1109322900.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> Hello,
>
> a few days ago I posted a bugreport about the QObject.inherits() not
> working
> as expected with SIP/PyQT:
> http://www.mail-archive.com/pykde@mats.imk.fraunhofer.de/msg04211.html
>
> This seems fixed with SIP 4.2 and PyQT 3.14, but sadly queryList() still
> appears to be broken.
>
>>>> from qt import *
>>>> app = QApplication([])
>>>> w = QWidget()
>>>> class Foo(QWidget):
> ...     pass
> ...
>>>> f = Foo(w)
>>>> f.className()
> 'Foo'
>>>> f.isA("Foo")
> True
>>>> f.inherits("Foo")
> True
>>>> w.queryList()
> [<__main__.Foo object at 0x00813690>]
>>>> w.queryList("QWidget")
> [<__main__.Foo object at 0x00813690>]
>>>> w.queryList("Foo")
> []
>
> So, any clue about this?

It will be fixed in the next PyQt snapshot.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic