How to let parent' s QGraphicsBlurEffect not affect the child widgets?
-
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?
-
Hi,
Following "setGraphicsEffect":http://qt-project.org/doc/qt-5/qwidget.html#setGraphicsEffect documentation, you can't