159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
12 lines
265 B
Lua
12 lines
265 B
Lua
local qt = require 'qt5'
|
|
local qml = qt.load_qml(byte_span.append([[
|
|
import QtQml 2.0
|
|
QtObject {
|
|
function foobar(a: int, b: int): int {
|
|
return a + b
|
|
}
|
|
}
|
|
]]))
|
|
assert(qml.object('foobar(int,int)', 1, 2), 3)
|
|
|
|
print("done 👍")
|