implements toast

This commit is contained in:
王劲鹏
2021-04-20 20:44:24 +08:00
committed by osborn
parent f488f023fa
commit 7202bbfe67
6 changed files with 87 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.15
Rectangle {
width: childrenRect.width
height: childrenRect.height
color: "#bb000000"
ColumnLayout {
Text {
text: "toast"
font.pixelSize: 20
color: 'white'
Layout.leftMargin: 5
Layout.rightMargin: 5
Layout.topMargin: 15
Layout.bottomMargin: 15
}
}
}

View File

@@ -2,5 +2,6 @@ import QtQuick 2.12
import QtQuick.Controls 2.5
Rectangle {
width: childrenRect.width
height: childrenRect.height
}