change toast to window
This commit is contained in:
@@ -2,10 +2,13 @@ import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
import QtQuick.Layouts 1.15
|
||||
|
||||
Rectangle {
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
Window {
|
||||
id: window
|
||||
|
||||
flags: flags | Qt.WindowStaysOnTopHint | Qt.Tool | Qt.FramelessWindowHint | Qt.WindowTransparentForInput
|
||||
|
||||
color: "#bb000000"
|
||||
visible: true
|
||||
|
||||
ColumnLayout {
|
||||
Text {
|
||||
@@ -17,6 +20,14 @@ Rectangle {
|
||||
Layout.topMargin: 15
|
||||
Layout.bottomMargin: 15
|
||||
}
|
||||
|
||||
onWidthChanged: {
|
||||
window.width = implicitWidth
|
||||
}
|
||||
|
||||
onHeightChanged: {
|
||||
window.height = implicitHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user