Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
6.4, 6.5
Description
QQmlV4Function allows passing arbitrary parameters from C++ to a QML function. In most cases, we are however not interested in arbitrary parameters, but a fixed set of them. In those cases, using normal C++ overloads and letting the engine select the correct one is preferable:
- The engine is able to do expected conversions, if they become necessary
- Both the compiler and to a lesser extent qmllint/qmllsp cannot handle QQmlV4Function
The main remaining use case for using QQmlV4Function should be accepting an arbitrary number of JS object arguments. For that, we currently lack a good alternative.
Attachments
Issue Links
- split to
-
QTBUG-112475 StackView operations (which take QQmlV4Function* args) cannot be compiled by qmlsc
- In Progress
-
QTBUG-116481 Make QML ListModel compilable by qmlsc
- Reported
-
QTBUG-116586 Make Menu.popup() compilable by qmlsc
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-105139 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
423113,8 | QQuickItem: make map(From|To)(Item|Global) type-safe in QML | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
424183,8 | QQuickLoader: Remove QQmlV4Function usage | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |