nixpkgs/pkgs/development/emilua-plugins/qt6/basic_test.lua
lucasew 32741141c7 emiluaPlugins.qt6: init at 1.0.3
Signed-off-by: lucasew <lucas59356@gmail.com>
2024-09-10 23:10:11 -03:00

13 lines
265 B
Lua

local qt = require 'qt6'
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 👍")