Qt嵌入式,独立的窗口的透明样式不会生效,但是子窗口的透明样式会生效,怎么解决

这是代码
#include "form.h"
#include "ui_form.h"
Form::Form(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Form)
{
ui->setupUi(this);
qApp->setAttribute(Qt::AA_UseStyleSheetPropagationInWidgetStyles,true);
setAttribute(Qt::WA_TranslucentBackground,true);
setAttribute(Qt::WA_NoSystemBackground,true);
setAttribute(Qt::WA_StyledBackground, true);
}
Form::~Form()
{
delete ui;
}
background-color: rgba(191, 64, 64, 0);
border-radius:25px;
独立一直是黑屏,圆角也无法设置独立窗口无法设置透明度,一直是黑屏,网上所有的方法都试过,但是没用。求解答

