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
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 *
Torsten Marek [EMAIL PROTECTED] wrote:
This came up some days ago, I think Phil fixed it in the snapshots. And he
said that he'll release sip 4.2/PyQt 3.14 in a couple of days, so you'll
need
some patience - or build the snapshot yourself.
OK, I'll build RC2 for now. Thanks
--
Giovanni Bajo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Giovanni Bajo schrieb:
| Hello,
|
| I see this behaviour with PyQt:
|
|
|from qt import *
|a = QApplication([])
|class Foo(QObject):
|
| ... pass
| ...
|
|f = Foo()
|print f.className()
|
| Foo
|
|print f.isA(Foo)
|
| False
|
|print f.inherits(Foo)
Hi Phil,
shouldn't attached script return True both times?
Doc says: A class is considered to inherit itself.
Cheers,
Pete
#! /usr/bin/env python
# 2005-02-04initial versionhp
import sys
from qt import *
class Test(QWidget):
def __init__(self, *args):
On Sunday 06 February 2005 7:16 pm, Hans-Peter Jansen wrote:
Hi Phil,
shouldn't attached script return True both times?
Doc says: A class is considered to inherit itself.
I'll take a look.
BTW, the I haven't yet got around to looking at the other things you've raised
- but I haven't
Hans-Peter Jansen schrieb:
Hi Phil,
shouldn't attached script return True both times?
Doc says: A class is considered to inherit itself.
But isn't QObject::inherits based on the Qt metaobject techniques? Unless
there
was some hand-written code for this function, this code will not work (unless I