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 string copyrightText
    property color backgroundColor

    Text {
        id: txt

        text: copyrightText
        padding: 5
        font.pixelSize: 12
        Rectangle {
            anchors.fill: parent
            color: backgroundColor
            z: -1
            opacity: 0.5
        }
    }
}