C
Qt Quick Ultralite perspective_transforms Example
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial 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() } }