qt编译错误

来源:互联网 发布:多益 知乎 编辑:程序博客网 时间:2024/06/01 09:35

今天写一个qt小程序,代码如下:

//HelloWord.qml
import QtQuick 2.5
Rectangle{
   width: 360
   height: 360
   Text{
    anchors.centerIn: parent
text: "Greeting from Qt5!"
   
   }
   MouseArea{
    anchors.fill: parent
onClicked {
Qt.quit();
}

   }
}

出现了一个错误:

file:///F:/Qt5/ch02/HelloWorld/HelloWorld.qml:14 Syntax error


C:\Qt\Qt5.6.2\5.6\mingw49_32\bin\qmlscene.exe exited with code -1。书知道是什么问题嘛,该如何解决?

0 0
原创粉丝点击