Skip to content

Instantly share code, notes, and snippets.

@leonardus
Created October 23, 2019 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardus/f143e571586093f54c1bcd806e74eff6 to your computer and use it in GitHub Desktop.
Save leonardus/f143e571586093f54c1bcd806e74eff6 to your computer and use it in GitHub Desktop.
//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