summaryrefslogtreecommitdiff
path: root/pkgs/development/emilua-plugins/qt5/basic_test.lua
blob: 5e37771a1ca57d62b7c075c5cc1d0d6b0b1ea5fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 👍")