QWidget的透明背景(但不是小孩) [英] QWidget transparent background (but not the children)

查看:1111
本文介绍了QWidget的透明背景(但不是小孩)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含的QPixmap QComboxBox 在布局一个QWidget。我想设置小部件透明的背景(但我想说明的的QPixmap QComboBox 常) 。我该怎么做呢?

I have a QWidget that contains a QPixmap and a QComboxBox in its Layout. I would like to set the background of the widget transparent (but I want to show the QPixmap and the QComboBox normally). How do I do that?

推荐答案

据QWidget的所有文档中充分说明:
http://doc.qt.io/qt-5 /qwidget.html#transparency-and-double-buffering

It is all well-explained in QWidget documentation: http://doc.qt.io/qt-5/qwidget.html#transparency-and-double-buffering

这篇关于QWidget的透明背景(但不是小孩)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆