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

List:       kde-bindings
Subject:    [Kde-bindings] Hacking moc-generated code
From:       Eric Jardim <ericjardim () gmail ! com>
Date:       2005-08-31 3:47:15
Message-ID: 432ec6c5050830204758d54848 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I am doing Python bindings for the Qt4 library (with Boost.Python), and I 
would like to know/share what do you know about the moc generated code.

Indeed, as you may know, this code does the "tricks" necessary to make 
signals/slots work. I am looking for docs or experiences with the moc 
(specially with the Qt4) generated code, to be able to put Python extended 
Widgets inside QtDesigner, and later embedded on C++.

All, I know that everything points to this "qt_metacall(QMetaObject::Call 
_c, int _id, void **_a)" function, but it is a little hard to understand the 
code. I tried googling to find the specs or something but I just this:
http://jahqueel.blogspot.com/2005/06/smoke-for-kde4.html
http://www.kdedevelopers.org/node/1149

I also searched the Qt docs, but it is very superficial (that's ok for 
regular Qt users). So, I have to do the moc job, and create this 
qt_metacall, method and point it to the right Python funtions.

BTW, here are the Python bindings. There are working examples on it:
http://developer.berlios.de/projects/python-qt4/
Try the downloadable version (not the SVN), please, and have fun :)

Thanks,

[Eric Jardim]

[Attachment #5 (text/html)]

Hi,<br>
<br>
I am doing Python bindings for the Qt4 library (with Boost.Python), and
I would like to know/share what do you know about the moc generated
code.<br>
<br>
Indeed, as you may know, this code does the &quot;tricks&quot; necessary to make
signals/slots work. I am looking for docs or experiences with the moc
(specially with the Qt4) generated code, to be able to put Python
extended Widgets inside QtDesigner, and later embedded on C++.<br>
<br>
All, I know that everything points to this
&quot;qt_metacall(QMetaObject::Call _c, int _id, void **_a)&quot; function, but
it is a little hard to understand the code. I tried googling to find
the specs or something but I just this:<br>
<a href="http://jahqueel.blogspot.com/2005/06/smoke-for-kde4.html">http://jahqueel.blogspot.com/2005/06/smoke-for-kde4.html</a><br>
 <a href="http://www.kdedevelopers.org/node/1149">http://www.kdedevelopers.org/node/1149</a><br>
 <br>
I also searched the Qt docs, but it is very superficial (that's ok for
regular Qt users). So, I have to do the moc job, and create this
qt_metacall, method and point it to the right Python funtions.<br>
<br>
BTW, here are the Python bindings. There are working examples on it:<br>
<a href="http://developer.berlios.de/projects/python-qt4/">http://developer.berlios.de/projects/python-qt4/</a><br>
 Try the downloadable version (not the SVN), please, and have fun :)<br>
<br>
Thanks,<br>
<br>
[Eric Jardim]<br>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


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

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