Skip to content
Snippets Groups Projects
Commit 95c8f262 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Force single threaded OSG widget when with Qt5

parent c19fa6e1
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
SafeApplication a(argc, argv);
a.setStyle(QStyleFactory::create (
#if USE_QT4
#ifdef USE_QT4
"cleanlooks"
#else // USE_QT4
"fusion"
......
......@@ -216,7 +216,11 @@ namespace gepetto {
delayedCreateView_.unlock();
return osgWindows_.last();
} else {
OSGWidget* osgWidget = new OSGWidget (osgViewerManagers_, name, this, 0);
OSGWidget* osgWidget = new OSGWidget (osgViewerManagers_, name, this, 0
#ifndef USE_QT4
, osgViewer::Viewer::SingleThreaded
#endif // USE_QT4
);
osgWidget->setObjectName(name.c_str());
addOSGWidget (osgWidget);
emit viewCreated(osgWidget);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment