diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-06-06 08:39:59 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-06-09 15:46:30 +0200 |
commit | fe8e388418608b4d07b3d8325915af05d386b993 (patch) | |
tree | 44613c79dcc0f7384c5073583576e5e91aaacf64 /tests/auto/qml/qqmlecmascript/data | |
parent | 38da583642529038c1d226f54946134a7261b654 (diff) |
QML: Fix overload resolution for QObject* types
Amazingly, QObject pointers were not supported at all so far.
Pick-to: 6.5 6.6
Change-Id: I61b28705d3bebf9602bdeee05aadcb085f39b184
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/qmlTypeWrapperArgs3.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/qmlTypeWrapperArgs3.qml b/tests/auto/qml/qqmlecmascript/data/qmlTypeWrapperArgs3.qml new file mode 100644 index 0000000000..a50c8e0f46 --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/qmlTypeWrapperArgs3.qml @@ -0,0 +1,12 @@ +import QtQml +import Qt.test.singletonWithEnum + +QtObject { + id: root + required property QtObject invokableObject + + Component.onCompleted: { + root.invokableObject.method_typeWrapper(Component) + root.invokableObject.method_typeWrapper(SingletonWithEnum) + } +} |