1 Star 0 Fork 0

灵荼山克府/LTSKFMusicPlayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Success.qml 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
灵荼山克府 提交于 2025-04-03 14:10 +08:00 . 增加了ini配置文件功能
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Window 2.12
import QtGraphicalEffects 1.0 //渐变色需要导入的库
ApplicationWindow {
id:success
visible: true
width: 540
height: 380
title: "注册成功!"
//opacity: 1 // 初始完全不透明
flags: Qt.Window | Qt.FramelessWindowHint //属性,标题栏隐藏 无框窗口提示,必须要前面的,不然系统桌面菜单栏,看不到软件
property int dragx: 0 //属性命令要小写字母开头
property int dragy: 0
property bool isDrag: false
Rectangle{
objectName: "rect"
radius: 10 //设置主窗口圆角
width: parent.width
height: parent.height
anchors.centerIn: parent
gradient: Gradient{ //设置渐变色,渐变色优先级大于color颜色
GradientStop{position: 0; color: "#FFEBCD"}
GradientStop{position: 1; color: "#FF8247"}
orientation: Gradient.Horizontal // 设置方向
}
Text { //文本说明:登录系统
objectName:"tip"
anchors.centerIn: parent
width: 120
height: 30
font.pointSize: 22
text: qsTr("注册成功!")
color: "white"
}
}
Timer {
id: timer
interval: 1000 // 1秒
running: true
onTriggered: {
fadeOutAnimation.start(); // 开始动画
}
}
SequentialAnimation {
id: fadeOutAnimation
NumberAnimation { target: success; property: "opacity"; to: 0;
duration: 1000 } // 渐变到透明需要1秒时间
PropertyAction { target: success; property: "visible"; value:
false } // 设置visible为false,彻底隐藏窗口
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LTSKF/ltskfmusic-player.git
git@gitee.com:LTSKF/ltskfmusic-player.git
LTSKF
ltskfmusic-player
LTSKFMusicPlayer
master

搜索帮助