Page 1 of 1

New Features in Qt 5.9

Posted: Thu Jun 01, 2017 10:06 am
by hungerburg
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?

Re: New Features in Qt 5.9

Posted: Thu Jun 01, 2017 10:32 am
by andrew
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.

Re: New Features in Qt 5.9

Posted: Sun Aug 20, 2017 12:42 pm
by dacq
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.

Re: New Features in Qt 5.9

Posted: Sun Aug 20, 2017 12:58 pm
by andrew
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] :(