mirror of https://github.com/qt/qtdoc.git
27 lines
562 B
QML
27 lines
562 B
QML
// Copyright (C) 2020 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
//! [file]
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
ApplicationWindow {
|
|
width: 400
|
|
height: 400
|
|
visible: true
|
|
|
|
Button {
|
|
id: button
|
|
text: "A Special Button"
|
|
background: Rectangle {
|
|
implicitWidth: 100
|
|
implicitHeight: 40
|
|
color: button.down ? "#d6d6d6" : "#f6f6f6"
|
|
border.color: "#26282a"
|
|
border.width: 1
|
|
radius: 4
|
|
}
|
|
}
|
|
}
|
|
//! [file]
|