Qt: Disable auto-fill background and set WA_NoSystemBackground

This commit is contained in:
Connor McLaughlin 2020-03-22 21:25:10 +10:00
parent 74e0e83cfd
commit 8b836555f6
1 changed files with 2 additions and 0 deletions

View File

@ -13,7 +13,9 @@ QtDisplayWidget::QtDisplayWidget(QtHostInterface* host_interface, QWidget* paren
: QWidget(parent), m_host_interface(host_interface)
{
// We want a native window for both D3D and OpenGL.
setAutoFillBackground(false);
setAttribute(Qt::WA_NativeWindow, true);
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_PaintOnScreen, true);
}