|
|
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
don't.
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 <ben@xxxxxxxxxxxxx>
To: Jason H <scorp1us@xxxxxxxxx>
Cc: Andreas Unger <andi.unger05@xxxxxxxxx>; qtInterest List
<Qt-interest@xxxxxxxxxxxxx>
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
> GraphicsView.
>
> 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.
-Benjamin Meyer
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest
|
|