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
2021-07-21 19:03:29 +08:00

34 lines
690 B
QML

import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.14
ApplicationWindow {
id: window
flags: Qt.WindowStaysOnTopHint | Qt.Tool | Qt.FramelessWindowHint | Qt.WindowTransparentForInput
color: "#bb000000"
visible: true
ColumnLayout {
Text {
text: "toast"
font.pixelSize: 20
color: 'white'
Layout.leftMargin: 5
Layout.rightMargin: 5
Layout.topMargin: 15
Layout.bottomMargin: 15
}
onWidthChanged: {
window.width = implicitWidth
}
onHeightChanged: {
window.height = implicitHeight
}
}
}