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

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);
}