qt5: Replace deprecated QtScript with QJSEngine
Bug #1733666 reported by
Sean M. Pappalardo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Committed
|
Low
|
Ferran Pujol |
Bug Description
As of Qt5.5, QtScript for Applications has been deprecated: http://
Its replacement is QJSEngine: http://
While there is currently no mention of QtScript being removed, it's not being improved so we should consider migrating.
tags: | added: qt5 |
summary: |
- Replace deprecated QtScript with QJSEngine + qt5: Replace deprecated QtScript with QJSEngine |
Changed in mixxx: | |
assignee: | nobody → Be (be.ing) |
Changed in mixxx: | |
assignee: | Be (be.ing) → Ferran Pujol (ferranpujol) |
Changed in mixxx: | |
status: | Confirmed → In Progress |
Changed in mixxx: | |
milestone: | 2.3.0 → 2.4.0 |
tags: |
added: controllers removed: scripting |
To post a comment you must log in.
It seems there isn't a way to get the current "this" object from a C++ function that is exposed to the JS environment, which will break engine. makeConnection and engine.beginTimer. However, QJSEngine supports ECMAScript 5, which introduced Function. prototype. bind. This will require some careful planning...