Hi,
AFAIK this was done on purpose [1]. You need to import the QtQml module inside
your JS file e.g.
.import QtQml 2.15 as CoreQML
Then accessing the Qt object via CoreQML.Qt should give you the enumerations.
[1]: https://codereview.qt-project.org/c/qt/qtdeclarative/+/319662 merged as
cbe18
On Thu, Jun 23, 2022, at 14:25, Andrei Golubev wrote:
> AFAIK this was done on purpose [1]. You need to import the QtQml module
> inside your JS file e.g.
>
> .import QtQml 2.15 as CoreQML
>
> Then accessing the Qt object via CoreQML.Qt should give you the enumerations.
>
> [1]: https://coderevi
Thanks for pointing this out!
.import QtQml 2.15 as CoreQML
console.log(CoreQML.Qt.Checked)
yields:
At line 2: ReferenceError: CoreQML is not defined
Is that something I should report as a bug? I'd appreciate any other potential
workarounds.
The .import dance as shown above