Warning, /frameworks/qqc2-desktop-style/tests/SpinBox.qml is written in an unsupported language. File is not indexed.

0001 /*
0002    SPDX-FileCopyrightText: 2021 Méven Car <meven.car@enioka.com>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import QtQuick.Layouts
0009 import QtQuick.Controls
0010 
0011 ApplicationWindow {
0012     visible: true
0013     width: 800
0014     height: 600
0015 
0016     GridLayout {
0017         anchors.fill: parent
0018         anchors.margins: 10
0019         flow: GridLayout.TopToBottom
0020 
0021         SpinBox {
0022             id: spinbox
0023 
0024             width: 100
0025             from: 1
0026             to: 100
0027             value: 50
0028             onValueModified: {
0029                 console.log(value)
0030             }
0031         }
0032     }
0033 }