最佳答案
I have 2 widgets: One of them is background(semi-transparent), second contains other widgets(without background)
QLCDNumber就是这种小部件。
这是可行的,其中一个很好的例子是:C++,Qt QMainWindow Transparent Background Example .但是,如果您需要使其半透明或降低透明度,您可以执行以下操作:
// mind the last component of rgba
mainwindow->setStyleSheet("QMainWindow{background-color: rgba(255, 255, 255, 127)};");
关于c++ - Qt:在窗口后面模糊,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34599240/