Qt: Disable auto-fill background and set WA_NoSystemBackground
This commit is contained in:
parent
74e0e83cfd
commit
8b836555f6
|
@ -13,7 +13,9 @@ QtDisplayWidget::QtDisplayWidget(QtHostInterface* host_interface, QWidget* paren
|
||||||
: QWidget(parent), m_host_interface(host_interface)
|
: QWidget(parent), m_host_interface(host_interface)
|
||||||
{
|
{
|
||||||
// We want a native window for both D3D and OpenGL.
|
// We want a native window for both D3D and OpenGL.
|
||||||
|
setAutoFillBackground(false);
|
||||||
setAttribute(Qt::WA_NativeWindow, true);
|
setAttribute(Qt::WA_NativeWindow, true);
|
||||||
|
setAttribute(Qt::WA_NoSystemBackground, true);
|
||||||
setAttribute(Qt::WA_PaintOnScreen, true);
|
setAttribute(Qt::WA_PaintOnScreen, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue