[Interest] Replacing QScript with QML
Jason H
jhihn at gmx.com
Tue Feb 14 17:06:36 CET 2017
> Sent: Tuesday, February 14, 2017 at 10:14 AM
> From: "Ian Geiser" <geiseri at geekcentral.pub>
> To: Interest at qt-project.org
> Subject: [Interest] Replacing QScript with QML
>
>
>
>
> Greetings, I am ported a non-gui Qt4 QScript apt to Qt5 and would like to replace the QScript component with QML. I am struggling with quite a few rudimentary things though.
>
> My biggest problem is custom Javascript types: I made everything a QObject based class, but allocating these objects in javascript is messy. Is there a way to get close to something as simple as "var foo = new Foo()"?
>
> Has anyone done this before? Are there any examples? Maybe I am putting a square peg into a round hole here. Any insight from the Qt guys here?
https://wiki.qt.io/QML_Dynamic_Objects ?
More information about the Interest
mailing list