Re: [Interest] Qt 5 -> 6: In QQmlEngine, Qt.Checked, etc. are no longer available

2022-06-23 Thread Andrei Golubev
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

Re: [Interest] Qt 5 -> 6: In QQmlEngine, Qt.Checked, etc. are no longer available

2022-06-23 Thread Thorbjørn Lindeijer
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

Re: [Interest] Qt 5 -> 6: In QQmlEngine, Qt.Checked, etc. are no longer available

2022-06-23 Thread Ulf Hermann
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