<div dir="ltr">Hi kdevelopers,<br><br>I know it is a discussion that has raised sometimes on the IRC and on the hackaton but it is something important enough to be discussed here.<br><br>As you might know, I'm working on the KDevPlatform Kross support and, for Kross it is necessary that an Object, to be recognized, inherits a QObject to retrieve the methods it has.<br>
<br>When I have a non-QObject class, I have 2 alternatives if I want it to be called from a script:<br><br>make it a QObject (as I did in the patch attatched)<br>-or-<br>make a wrapper as I did in kross/projectitemadaptors.h<br>
<br>I think it is much better to get it from the QObject because we don't duplicate any code but I also understand that in cases where it is just heavy to use a QObject so...<br><br>Note: the attatched patch is just an example of how things change when I make it QObject, I don't mean it is the only cases I need that.<br>
<br>Any thoughts?<br><br>Thank you,<br>Aleix<br></div>