C

Qt Quick Ultralite map example

// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
import QtQuick

Item {
    id: root

    width: txt.implicitWidth
    height: txt.implicitHeight

    property alias text: txt.text
    property color backgroundColor: "Lightgray"

    Rectangle {
        anchors.fill: parent
        color: backgroundColor
        opacity: 0.5
    }

    Text {
        id: txt

        padding: 5
        font.pixelSize: 12
    }
}