[Qtscript-bindings] QtScript Debugger

Kent Hansen khansen at trolltech.com
Wed Aug 27 11:15:06 CEST 2008


richmoore44 at gmail.com wrote:
> On 8/21/08, Kent Hansen <khansen at trolltech.com> wrote:
>   
>> Actually I did add some API to the QtScript core that the debugger uses
>> (like getting/setting the scope chain associated with a QScriptContext).
>> But it should be a matter of #if'ing the Qt version a few places and
>> provide a reasonable fallback when compiling against 4.4. Why not create
>> a .pro file that pulls in $QTDIR/src/scripttools/debugging/debugging.pri
>> and see how far the build gets (no, I don't want to be the first to try
>> it). :-)
>>     
>
> I had a quick look at this today and it seems that the model classes
> all use QAbstractItemModelPrivate for some reason. I tried a quick
> hack of changing them to use the non-private class but this meant
> there were lots of unimplemented pure virtuals. :-(
>
> Rich.

You have to compile against a Qt source package, so it can find the 
private headers. I have a patch that makes the debugger work BTW, tried 
it with one of the 4.4 examples and it seems to work fine. As I said, 
just a few #if version checks. Let me know if you want me to submit.

Kent


More information about the Qtscript-bindings mailing list