当前位置:网站首页>Qt创建背景遮罩,弹出子窗口,父窗口背景变黑变暗
Qt创建背景遮罩,弹出子窗口,父窗口背景变黑变暗
2022-07-23 23:36:00 【百口可乐__】
qt实现弹出新的界面,而原来窗口暗化。
可以通过创建一个子窗口,背景为黑色并且具有一定的透明效果,掩盖父窗口来实现。
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();
效果
弹出提示框后背景暗化
边栏推荐
- jarvisoj_level2
- Solo article body contains & lt; & gt; Labels affect page styles
- Go language multiple return values and return error types
- STM32 can initialization details
- Solidity-delegateCall插槽冲突分析与解决
- BUUCTF -rip
- Tree DP
- A great open source micro community light forum source code
- Detailed explanation of pseudo instructions in assembly language (with examples)
- Grey correlation analysis (matlab)
猜你喜欢

C # introductory series (XXVIII) -- query syntax of LINQ

A great open source micro community light forum source code
![48: Chapter 5: develop admin management service: 1: create sub project [imooc news dev Service Admin], management service module;](/img/c5/dfdabdd8181e9e6118dbf968e3e19f.png)
48: Chapter 5: develop admin management service: 1: create sub project [imooc news dev Service Admin], management service module;

pwn1_sctf_2016

Redis pipeline technology / partition
![[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)](/img/61/5547822b782043672b626f6b86d304.png)
[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)

Android金九银十的面试你准备的怎么样了?最新Android面试真题汇总助你备战

What is the difference between go run, go build and go install

FreeRTOS personal notes - suspend / unhook tasks

Flask框架中如何进行数据库的迁移
随机推荐
strncat() strncmp()
This article will show you what typescript is
Grey correlation analysis (matlab)
Matlab Foundation
Entropy weight method to optimize TOPSIS (matlab)
BGP basic experiment
AutoCAD advanced operation
PHP(2)
[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)
Redis pipeline technology / partition
[SSM]前后台协议联调②
FreeRTOS personal notes - create / delete dynamic tasks, start scheduler
DGS之N+1选择问题
FreeRTOS personal notes - suspend / unhook tasks
ret2text
ciscn_2019_n_1
【Error】TypeError: expected str, bytes or os. PathLike object, not int
solo 文章正文含有 <> 标签会影响到页面样式
Redis管道技术/分区
Arrayslist and sequence table -- Simulation Implementation