1 Star 0 Fork 39

cc8848 / loginsight

forked from compilelife / loginsight 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Toast.qml 652 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenyong 提交于 2022-09-09 09:28 . v3.0
import QtQuick 2.0
import QtGraphicalEffects 1.15
Rectangle {
property string message: ''
width: content.width + 40
height: 40
radius: 20
color: '#e0000000'
anchors {
horizontalCenter: parent.horizontalCenter
bottom: parent.bottom
bottomMargin: 20
}
Text {
id: content
text: message
font.pixelSize: 14
color: 'white'
wrapMode: Text.NoWrap
anchors.centerIn: parent
}
function show(txt, duration=2000) {
message = txt
visible = true
hideTimer.interval = duration
hideTimer.running = true
}
Timer {
id: hideTimer
repeat: false
onTriggered: visible = false
}
}
Python
1
https://gitee.com/supergame/loginsight.git
git@gitee.com:supergame/loginsight.git
supergame
loginsight
loginsight
master

搜索帮助