How to let parent’ s QGraphicsBlurEffect not affect the child widgets?
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QGraphicsBlurEffect* eff = new QGraphicsBlurEffect;
eff->setBlurRadius(5);
this->setGraphicsEffect(eff);
...
}
This code will cause the child widgets have blur effect. How to cancel that?
↧