This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/resources/toast.qml

34 lines
690 B
QML
Raw Permalink Normal View History

2021-04-20 20:44:24 +08:00
import QtQuick 2.12
import QtQuick.Controls 2.5
2021-06-16 13:51:45 +08:00
import QtQuick.Layouts 1.14
2021-04-20 20:44:24 +08:00
2021-04-26 21:21:59 +08:00
ApplicationWindow {
2021-04-21 16:10:35 +08:00
id: window
2021-06-10 19:19:26 +08:00
flags: Qt.WindowStaysOnTopHint | Qt.Tool | Qt.FramelessWindowHint | Qt.WindowTransparentForInput
2021-04-21 16:10:35 +08:00
2021-04-20 20:44:24 +08:00
color: "#bb000000"
2021-04-21 16:10:35 +08:00
visible: true
2021-04-20 20:44:24 +08:00
ColumnLayout {
Text {
text: "toast"
font.pixelSize: 20
color: 'white'
Layout.leftMargin: 5
Layout.rightMargin: 5
Layout.topMargin: 15
Layout.bottomMargin: 15
}
2021-04-21 16:10:35 +08:00
onWidthChanged: {
window.width = implicitWidth
}
onHeightChanged: {
window.height = implicitHeight
}
2021-04-20 20:44:24 +08:00
}
}