qml javascript function parameter typing
-
I have a 5.15 application that i need to backport to 5.13.
5.13 is complaining about specifying types in qml functions.for example
function doSomething(number : int) { [...] }looks like 5.13 doesn't like the "
: int"is there anywhere in the docs that explain when specifying type became acceptable? i can't find it.
is there anything settable in 5.13 to enable the capability so i don't need to rewrite stuff?
-
I have a 5.15 application that i need to backport to 5.13.
5.13 is complaining about specifying types in qml functions.for example
function doSomething(number : int) { [...] }looks like 5.13 doesn't like the "
: int"is there anywhere in the docs that explain when specifying type became acceptable? i can't find it.
is there anything settable in 5.13 to enable the capability so i don't need to rewrite stuff?
@poncho524 said in qml javascript function parameter typing:
is there anywhere in the docs that explain when specifying type became acceptable? i can't find it.
Not the docs, but this blog post says it was introduced in Qt 5.14: https://www.qt.io/blog/compiling-qml-to-c-annotating-javascript-functions
https://www.qt.io/blog/compiling-qml-to-c-annotating-javascript-functions
Not that I know of
-
P poncho524 has marked this topic as solved