33 #include <OgreRenderWindow.h> 36 #include <QApplication> 38 #include <QPaintEvent> 40 #include <QVBoxLayout> 41 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) 50 , render_system_( render_system )
53 setAttribute(Qt::WA_OpaquePaintEvent,
true);
54 setAttribute(Qt::WA_PaintOnScreen,
true);
56 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) 69 QVBoxLayout *mainLayout =
new QVBoxLayout;
70 mainLayout->setContentsMargins( 0, 0, 0, 0 );
72 this->setLayout(mainLayout);
75 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) 80 QApplication::flush();
81 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) 82 QApplication::syncX();
103 QWidget::moveEvent(e);
129 const int w = width() * ratio;
137 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) 140 QWindow* window = windowHandle();
141 return window ? window->devicePixelRatio() : 1.0;
Ogre::RenderWindow * makeRenderWindow(WindowIDType window_id, unsigned int width, unsigned int height, double pixel_ratio=1.0)
unsigned long WindowIDType
TFSIMD_FORCE_INLINE const tfScalar & w() const