Yeah, but if you're going to have an Open Source replacement for flash, having
scripters modify C++ code is bogus.
The PyQt library uses SIP to get around this, with the caveat that you can't
inherit from two C++ classes. The work-around for that is to make an object
that inherits one and proxies the other. A pain, but you shouldn't have to
recompile your C++ every time you want to make a new object. And with PyQt you
I can't figure out why it is not supported by default - that if you inherit
from QObject, then QtScript should not care whether your object comes from C++
or Qt script. It's a major bummer. So much so that I'm willing to buy a PyQt
license. I tried. I gave up.
Again just proof that Qt isn't ready to take on Flash. (But we're sooooo close!)
----- Original Message ----
From: Benjamin Meyer <[email protected]>
To: Jason H <[email protected]>
Cc: Andreas Unger <[email protected]>; qtInterest List
Sent: Mon, October 12, 2009 5:08:03 PM
Subject: Re: [Qt-interest] Qt vs Adobe Flash etc
On Oct 12, 2009, at 1:23 AM, Jason H wrote:
> Qt has made huge strides in recent versions, particularly with the
> However Qt does not have a good enough scripting language to compete with
> ActionScript. QtScript is not capable of defining new GraphicsItem which can
> then be used by Qt.
It is actually pretty easy to add the ability to construct c++ object in
QtScript and I regularly do this in all my QtScript project. Check out the
QtScript documentation for details.
Qt-interest mailing list