C

Qt Quick Ultralite Motorcycle Cluster Demo

/****************************************************************************** ** ** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Quick Ultralite module. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see http://www.qt.io/terms-conditions. For further ** information use the contact form at http://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ******************************************************************************/
import QtQuick 2.0 Item { id: root width: 500 height: 44 property alias text: txt.text property alias color: txt.color Text { id: txt anchors.horizontalCenter: inputTextBottomLine.horizontalCenter anchors.bottom: inputTextBottomLine.bottom anchors.bottomMargin: 6 font.pixelSize: 34 } Rectangle { id: inputTextBottomLine width: 500 height: 2 anchors.top: root.top anchors.topMargin: 42 color: txt.color Rectangle { width: 2 height: 8 anchors.bottom: inputTextBottomLine.bottom anchors.left: inputTextBottomLine.left color: txt.color } Rectangle { width: 2 height: 8 anchors.bottom: inputTextBottomLine.bottom anchors.right: inputTextBottomLine.right color: txt.color } } }