Disable QGraphicsEffect when QComboBox added inside QGraphicsProxyWidget
The QComboBox dropdown doesnt render when its added to a QGraphicsProxyWidget and any QGraphicsEffect is added to it. Fixes: QTBUG-128916 Fixes: QTBUG-128329 Change-Id: I7f9b7ceea9afa819fcd4785250859ea7b7c85f69 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 5fc968ade3120fe7f9d0d01988254fd1fb855262) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7d540dab57
commit
d9a3b03b47
@ -2149,7 +2149,8 @@ void QWindows11Style::polish(QWidget* widget)
|
|||||||
auto pal = widget->palette();
|
auto pal = widget->palette();
|
||||||
pal.setColor(widget->backgroundRole(), Qt::transparent);
|
pal.setColor(widget->backgroundRole(), Qt::transparent);
|
||||||
widget->setPalette(pal);
|
widget->setPalette(pal);
|
||||||
if (!isScrollBar) { // for menus and combobox containers...
|
if (!isScrollBar
|
||||||
|
&& widget->graphicsProxyWidget() == nullptr) { // for menus and combobox containers...
|
||||||
QGraphicsDropShadowEffect* dropshadow = new QGraphicsDropShadowEffect(widget);
|
QGraphicsDropShadowEffect* dropshadow = new QGraphicsDropShadowEffect(widget);
|
||||||
dropshadow->setBlurRadius(3);
|
dropshadow->setBlurRadius(3);
|
||||||
dropshadow->setXOffset(3);
|
dropshadow->setXOffset(3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user