nixpkgs/pkgs/development/emilua-plugins/qt5/basic_test.lua
lucasew 6f3735f382 emiluaPlugins.qt5: init at 1.0.1
Signed-off-by: lucasew <lucas59356@gmail.com>
2024-09-10 23:10:08 -03:00

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