diff --git a/examples/osgviewerQT/QOSGWidget.cpp b/examples/osgviewerQT/QOSGWidget.cpp index 68912a04b..e89a5d99d 100644 --- a/examples/osgviewerQT/QOSGWidget.cpp +++ b/examples/osgviewerQT/QOSGWidget.cpp @@ -91,6 +91,11 @@ class QOSGWidget : public QWidget osgViewer::GraphicsWindow* getGraphicsWindow() { return _gw.get(); } const osgViewer::GraphicsWindow* getGraphicsWindow() const { return _gw.get(); } +#ifdef WIN32 + // Prevent flicker on Windows Qt + QPaintEngine* paintEngine () const { return 0; } +#endif + protected: void init();