C
Qt Quick Ultralite perspective_transforms Example
/****************************************************************************** ** ** 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.12 import QtQuick.Controls 2.15 import Constants 1.0 Column { id: root spacing: 5 property alias text: txt.text property alias value: slider.value property alias stepSize: slider.stepSize property alias to: slider.to property alias pressed: slider.pressed property alias textHorizontalAlignment: txt.horizontalAlignment signal moved Text { id: txt x: 3 width: root.width - txt.x * 2 color: enabled ? Constants.textColor : Constants.disabledTextColor font.pixelSize: Constants.textPixelSize Behavior on color { ColorAnimation { duration: 250 } } } Slider { id: slider width: root.width onMoved: root.moved() } }