.QML 文件扩展名
Qt Modeling Language File
| 开发者 | Qt Group |
| 受欢迎程度 |
2.9 | 16 票 |
什么是 QML 文件?
A QML file is a source code file created with Qt SDK, a software development IDE used to create user interfaces for desktop and mobile applications. It contains QML source code encoded in UTF-8 format.
更多信息
QML files start with an import statement since they must import at least one imported library. Below is an example QML source code snippet:
import QtQuick 1.0
Rectangle {
width: 120; height: 160;
resources: [
Component {
id: contactDelegate
Text {
text: modelData.firstName + " " + modelData.lastName
}
}
]
ListView {
anchors.fill: parent
model: contactModel
delegate: contactDelegate
}
}