repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pytrainer: unpin python 3.10
[NixPkgs.git]
/
pkgs
/
development
/
emilua-plugins
/
qt5
/
basic_test.lua
blob
5e37771a1ca57d62b7c075c5cc1d0d6b0b1ea5fd
1
local
qt
=
require
'qt5'
2
local
qml
=
qt
.
load_qml
(
byte_span
.
append
(
[[
3
import QtQml 2.0
4
QtObject {
5
function foobar(a: int, b: int): int {
6
return a + b
7
}
8
}
9
]]
))
10
assert
(
qml
.
object
(
'foobar(int,int)'
,
1
,
2
),
3
)
11
12
print
(
"done 👍"
)