.QML File Extension
Qt Modeling Language File
Developer | Qt Group |
Popularity |
2.9 | 16 Votes |
What is a QML file?
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.
More Information
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
}
}