New Features in Qt 5.9

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

User avatar
hungerburg
Premier Member
Posts: 160
Joined: Fri May 28, 2010 7:35 pm

New Features in Qt 5.9

Postby hungerburg » Thu Jun 01, 2017 10:06 am

Down close to the bottom of this page https://wiki.qt.io/New_Features_in_Qt_5.9 I read, that Qt Script is considered for removal in subsequent releases of Qt. Is it time to lobby for reconsidering?

User avatar
andrew
Site Admin
Posts: 5318
Joined: Fri Mar 30, 2007 6:07 am

Re: New Features in Qt 5.9

Postby andrew » Thu Jun 01, 2017 10:32 am

Yes, I am aware of this. This was announced with Qt 5.6 for the first time. Unfortunately, Qt has a long history of randomly introducing and then removing modules.

There are several ways forward:
1) Embed another JavaScript engine (e.g. V8 from Google)
2) Fork and maintain the Qt script engine, port to future Qt versions, etc.
3) Abandon JavaScript
4) QJSEngine (which is not currently a full replacement for QScript and will probably be abandoned in Qt 7)
5) QQmlEngine / QML (risking that it will also be abandoned in Qt 7)

Option 2) seems the most likely so far. We have done this with other useful but abandoned Qt technologies in the past as well.

Note that "subsequent releases" are several years away as far as QCAD is concerned. Qt 5.x has just very recently matured to a state at which it became usable (with patches) for QCAD. I.e. it took 4-5 years for Qt 5 to reach a deployable state. Even Qt 4.8 is still a very good option for QCAD with better performance and far less issues than Qt 5.9.

dacq
Registered Member
Posts: 1
Joined: Sun Aug 20, 2017 12:22 pm

Re: New Features in Qt 5.9

Postby dacq » Sun Aug 20, 2017 12:42 pm

Is QJSEngine really going to be abandoned in future? Even Qt 6 is not released yet :) . I don't find anything about this on the web except in this forum.

User avatar
andrew
Site Admin
Posts: 5318
Joined: Fri Mar 30, 2007 6:07 am

Re: New Features in Qt 5.9

Postby andrew » Sun Aug 20, 2017 12:58 pm

Just an educated guess.

QSA (~2005?) has been abandoned after about 2 or 3 years
QtScript (2007) has been abandoned after about 8 years
QJSEngine (2012) [insert your dire prediction here] :(


Return to “QCAD Developers and Contributors”

Who is online

Users browsing this forum: No registered users and 1 guest