当前位置:网站首页>QT create a background mask, pop up the child window, and the background of the parent window turns black and dark
QT create a background mask, pop up the child window, and the background of the parent window turns black and dark
2022-07-23 23:43:00 【Pepsi__】
qt Realize the pop-up of a new interface , The original window is dimmed .
You can create a sub window , The background is black and has a certain transparent effect , Hide the parent window to realize .
QWidget *m_widget = new QWidget(this);
m_widget->resize (this->width(), this->height());
m_widget->move (0,0);
m_widget->setStyleSheet("background-color:rgba(0, 0, 0,80%);");
m_widget->show();
effect 
The background darkens after the prompt box pops up 
边栏推荐
- BUUCTF -rip
- ciscn_ 2019_ n_ one
- SQL语句实战学习
- JS学习笔记-- 数组方法 底层实现方式
- 第六章、实现一个持久性适配器
- What is the difference between go run, go build and go install
- JS learning notes -- bottom implementation of array method
- cmake 编译工具小记
- Iptables prevent nmap scanning and binlog
- Intel英特尔RealSense实感深度摄像头 自校准(Self-Calibration)操作步骤讲解 D400系列适用
猜你喜欢

第五章、实现Web适配器

Redis集群搭建(Cluster 集群模式,分片集群)

idea无法切换成中文

Arrayslist and sequence table -- Simulation Implementation

FreeRTOS personal notes - suspend / unhook tasks

Operating system not found solution after importing ISO into virtual machine

ret2text

Chapter III Organization Code

js把数字转大写

Android金九银十的面试你准备的怎么样了?最新Android面试真题汇总助你备战
随机推荐
DGS's mutations
idea无法切换成中文
【细节】radio 标签 ,更换 默认选中的背景色
JS學習筆記-- 數組方法 底層實現方式
[array] longest continuous subsequence in nc95 array - difficult
Kirin OS and Godson environment compilation and installation of greatsql
【for循环 if 条件语句】总结
SQL语句实战学习
ciscn_2019_c_1
线程池串行化
Iptables prevent nmap scanning and binlog
麒麟OS和龙芯环境编译安装GreatSQL
Error handling of DGS
JS convert numbers to uppercase
What are the three-party payment companies?
PHP(2)
solo 文章正文含有 <> 标签会影响到页面样式
第五章、实现Web适配器
The most complete 2022 Android interview questions in history
【Error】TypeError: expected str, bytes or os. PathLike object, not int