reduce requirements of the Viewport
This commit is contained in:
parent
d92d75a4d1
commit
be2df57702
|
|
@ -5,6 +5,7 @@
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
|
|
||||||
Viewport::Viewport(QWidget* parent, Qt::WindowFlags f) : QWidget(parent, f) {
|
Viewport::Viewport(QWidget* parent, Qt::WindowFlags f) : QWidget(parent, f) {
|
||||||
|
setAttribute(Qt::WA_DontCreateNativeAncestors);
|
||||||
setAttribute(Qt::WA_NativeWindow);
|
setAttribute(Qt::WA_NativeWindow);
|
||||||
setAttribute(Qt::WA_PaintOnScreen);
|
setAttribute(Qt::WA_PaintOnScreen);
|
||||||
setAttribute(Qt::WA_NoSystemBackground);
|
setAttribute(Qt::WA_NoSystemBackground);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user