Skip to content

Commit

Permalink
fix: DArrowRectangle background color abnormality
Browse files Browse the repository at this point in the history
  • Loading branch information
kegechen committed Aug 17, 2023
1 parent b2e2112 commit 35c0093
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/dplatformwindowhandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ static QWindow *ensureWindowHandle(QWidget *widget)
handle = window->windowHandle();
window->setAttribute(Qt::WA_NativeWindow, false);

// FIX developer-center#5187 updateIsTranslucent
if (window->testAttribute(Qt::WA_TranslucentBackground))
window->setAttribute(Qt::WA_OpaquePaintEvent);

// dxcb version >= 1.1.6
if (!DPlatformWindowHandle::pluginVersion().isEmpty()) {
/// TODO: Avoid call parentWidget()->enforceNativeChildren().
Expand Down

0 comments on commit 35c0093

Please sign in to comment.