使用 Qt Quick 1 代码模型代替 Qt Quick 2。 (M324)

Using Qt Quick 1 code model instead of Qt Quick 2. (M324)

我正在使用 Qt 版本 5.10.1 收到此警告。 我该如何解决这个问题。

编辑:

已尝试重置模型 select 工具 > QML/JS > 重置代码模型。不工作。尝试了第二个选项,但找不到选项。请看下面的屏幕截图。

根据 List of JavaScript and QML Checks:

M324

Warning

Using Qt Quick 1 code model instead of Qt Quick 2

The code model might be corrupt or the QML emulation layer might have been built with a different Qt version than the one selected in the build and run kit. For more information, see Resetting the Code Model and Running QML Modules in Qt Quick Designer.

要按照 link 的指示重置模型,您必须执行以下操作:

select Tools > QML/JS > Reset Code Model.

第二个选项: