Hi,

So to display 2 additional windows, I could theoretically use another viewer 
apart from the existing one embedded in Qt.

Had an idea that I could make the Qt windows just as a window for tools 
(without the osg scene) 
and a viewer showing all the scene windows (left, middle, right). But the OSG 
blocking Qt window is still a thing. Back in 2009 you wrote:


Code:
if (useFrameLoopThread)
{
  // create a thread to run the viewer's frame loop
  ViewerFrameThread viewerThread(viewer.get(), true);
  viewerThread.startThread();

  // no start the standard Qt event loop, then exists when the viewerThead 
sends the QApplication::exit() signal.
  return QApplication::exec();

}
else
{
  // run the frame loop, interleaving Qt and the main OSG frame loop
  while(!viewer->done())
  {
    // process Qt events - this handles both events and paints the browser image
    QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
    viewer->frame();
  }

  return 0;
}




Could this be used for syncing the threads in the newer versions as well?

Thank you!

Cheers,
Eddy

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66449#66449





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to