[Qt-interest] Qt vs Adobe Flash etc

Jason H scorp1us at yahoo.com
Mon Oct 12 23:25:36 CEST 2009


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 at meyerhome.net>
To: Jason H <scorp1us at yahoo.com>
Cc: Andreas Unger <andi.unger05 at gmail.com>; qtInterest List <Qt-interest at trolltech.com>
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



      



More information about the Qt-interest-old mailing list