【发布时间】:2015-03-25 03:22:43
【问题描述】:
我收到以下内容-
file:///C:/Qt/5.4/mingw491_32/Design1.qml:9:1: Syntax error
Text {
^
这是我非常简单的代码,但我无法让它在 qmlviewer 中运行
import QtQuick 2.0
Rectangle {
id: page
width: 500; height: 200
color: "lightgray"
}
Text {
id: Text1
text: "Hello World!"
y: 30
anchors.horizontalCenter: page.horizontalCenter
font.pointSize: 24; font.bold: true
}
【问题讨论】:
标签: qt syntax-error qml qtquick2