-
-
Save leonardus/f143e571586093f54c1bcd806e74eff6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Main.qml | |
import QtQuick 2.7 | |
import QtQuick.Controls 2.0 | |
import QtQuick.Layouts 1.0 | |
import customtype 1.0 | |
ApplicationWindow { | |
id: window | |
visible: true | |
width: 640 | |
height: 480 | |
title: qsTr("Application") | |
CSharp { | |
id: csharp | |
Component.onCompleted: function() { | |
console.log(csharp.TestMethod) // undefined | |
csharp.TestMethod() // TypeError: Property 'TestMethod' of object CSharp(0xb7cb00) is not a function | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment