import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { width: 1024 height: 768 visible: true title: qsTr("Wino Mail Qt") // Use the translator to set the title // Note: we can't directly call translator.tr here because it's a C++ object. // We'll set the title in Component.onCompleted by accessing the context property. Component.onCompleted: { title = translator.tr("appName") } Rectangle { anchors.fill: parent color: "#f0f0f0" Text { text: qsTr("Welcome to Wino Mail Qt!") anchors.centerIn: parent font.pointSize: 24 color: "#333" } } }