QML父窗口半透明情况下子窗口不透明
来源:互联网 发布:软件定义存储产品 编辑:程序博客网 时间:2024/05/02 06:47
QML的父元素opacity值会被继承,而color不会。故可以在父窗口使用8位color代码,前两位是alphar透明值。
Rectangle{ id:waitingRec z:100 visible:false anchors.fill: parent color:"#50000000" Component.onCompleted: { animation.start() } Image{ id:rotation anchors.centerIn: parent width:80 height:80 source:"image://cmos-settings/icon/loading.png" RotationAnimation on rotation { id: animation loops: Animation.Infinite from: 0 to: 360 } } Text{ anchors.top:rotation.bottom anchors.horizontalCenter: parent.horizontalCenter anchors.topMargin: 15 text:qsTr("Uninstalling...") color:"black" font.family: defaultFontFamily font.pixelSize: 35 style: Text.Outline styleColor:"white" } }父窗口是黑色半透明铺满全屏,子窗口是不透明的旋转的动画和文字界面。注意父元素的color属性
0 0
- QML父窗口半透明情况下子窗口不透明
- 半透明: MFC实现父窗口不透明,子窗口半透明效果
- MFC实现父窗口不透明,子窗口半透明效果
- MFC : 在主窗口不透明的情况下, 建立一个半透明的子窗体带透明的TreeCtrl
- 窗口半透明
- 使windows 窗口半透明
- 半透明渐显窗口
- 打造半透明窗口
- 如何制作半透明窗口
- qt 设置窗口半透明
- 半透明的窗口
- VC实现半透明窗口
- VC 设置窗口半透明
- Swing 打造半透明窗口
- Qt半透明窗口
- 实现半透明窗口
- Delphi 窗口半透明
- 半透明显示子窗口
- 实现联动菜单
- 直接选择排序
- oracle在linux下开机自动启动的配置
- 银联IC卡读卡流程详解--读卡器与卡交互指令
- mysql 操作语句_select子句、数据库的操作
- QML父窗口半透明情况下子窗口不透明
- Activity之SharedPreferences探究
- ubuntu12.04 默认以命令行启动
- latex 简历 英文模板
- 【Android自动化打包】03. APK的数字签名
- 去掉HTML标签
- 在游戏中如何让随机更加智能
- 开源 免费 java CMS - FreeCMS1.6 敏感词管理
- 搞IT的技术人员为什么会如此苦逼