mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
32741141c7
Signed-off-by: lucasew <lucas59356@gmail.com>
13 lines
265 B
Lua
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 👍")
|