Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
-
None
Description
The C++ function signature is
Q_INVOKABLE QQuickItem *find(const QJSValue &callback, LoadBehavior behavior = DontLoad);
Code
import QtQuick import QtQuick.Controls.Basic Window { width: 640 height: 480 visible: true StackView { id: stack } function find1(): void { stack.find(function(item) { return false; }) } }
Compiler output
Warning: main.qml:14:3: Could not compile function find1: Cannot generate efficient code for LoadClosure [compiler] stack.find(function(item) { ^^^^^
Attachments
Issue Links
- relates to
-
QTBUG-101464 Support Qt.callLater
-
- Open
-
-
QTBUG-112604 StackView: 2-arg versions of get() and find() cannot be compiled by qmlsc
-
- Closed
-
-
QTBUG-112876 qmlsc: Support Qt.binding()
-
- Reported
-
- mentioned in
-
Page Loading...