TreeView 未突出显示语法

TreeView is not syntax highlighted

Qt Creator 5.5 在 Windows 和 MacOS 中都没有语法高亮 TreeView

import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.Controls 1.4

ApplicationWindow {
    visible: true
    width: Screen.width /2
    height: Screen.height/2

    TreeView {
        anchors.fill: parent
    }

}

TreeView 被标记为红色下划线,好像 Qt Creator 无法识别,但它确实编译并且 运行 很好。为什么没有正确突出显示语法?

我认为这是一个错误,因为所需的模块已正确导入。

您可以在行 TreeView {

之前使用 //@disable-check M300 来抑制警告
import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.Controls 1.4

ApplicationWindow {
    visible: true
    width: Screen.width /2
    height: Screen.height/2

    //@disable-check M300
    TreeView {
        anchors.fill: parent
    }

}