April 2018
Beginner
714 pages
18h 21m
English
Let's add some content to our window. Edit the main.qml file with the following code:
import QtQuick 2.9import QtQuick.Window 2.2import QtQuick.Controls 2.2Window { visible: true width: 640 height: 480 title: qsTr("Hello World") TextField { text: "Edit me" anchors { top: parent.top left: parent.left } } Label { text: "Hello world" anchors { bottom: parent.bottom left: parent.left } }}
When you run the project, you will see a text field and a label in the window:

Read now
Unlock full access