34 #include <OgreRenderWindow.h>
37 #include <QApplication>
39 #include <QPaintEvent>
41 #include <QVBoxLayout>
47 : QWidget(parent), render_system_(render_system), render_window_(nullptr)
49 setAttribute(Qt::WA_OpaquePaintEvent,
true);
50 setAttribute(Qt::WA_PaintOnScreen,
true);
53 QWindow* window = windowHandle();
54 pixel_ratio_ = window ? window->devicePixelRatio() : 1.0;
72 QWidget::moveEvent(e);
91 QWidget::resizeEvent(e);
99 #if OGRE_VERSION < OGRE_VERSION_CHECK(1, 12, 0)