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 930665b commit 15f3dc1
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 @@ -24,6 +24,10 @@ static QWindow *ensureWindowHandle(QWidget *widget)
}

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

handle = window->windowHandle();
window->setAttribute(Qt::WA_NativeWindow, false);

Expand Down

0 comments on commit 15f3dc1

Please sign in to comment.