[osg-users] set proper size to window manager at startup

Gianni Ambrosio g.ambrosio+osg at gmail.com
Fri Apr 15 02:01:39 PDT 2016


The problem seems to be here:

osg130-osgGAd.dll!osgGA::EventQueue::clear()  Line 37	C++
osg130-osgGAd.dll!osgGA::EventQueue::setStartTick(__int64 tick)  Line 212 + 0x25 bytes	C++
osg130-osgViewerd.dll!osgViewer::CompositeViewer::setStartTick(__int64 tick)  Line 355 + 0x1d bytes	C++
osg130-osgViewerd.dll!osgViewer::CompositeViewer::realize()  Line 646 + 0x31 bytes	C++
osg130-osgViewerd.dll!osgViewer::ViewerBase::frame(double simulationTime)  Line 678 + 0xf bytes	C++
osgWidgetsTest.exe!ViewerWidget::paintEvent(QPaintEvent * event)  Line 154 + 0x46 bytes	C++

The first time a paint event is called, the eventqueue is cleaned up (see EventQueue::clear()) and the RESIZE event with correct width and height unavoidably lost!

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








More information about the osg-users mailing list