How to let parent' s QGraphicsBlurEffect not affect the child widgets?
General and Desktop
2
Posts
2
Posters
883
Views
1
Watching
-
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