depot/third_party/nixpkgs/pkgs/development/emilua-plugins/qt5/basic_test.lua
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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 👍")