From: Schaefer J. <Joh...@ip...> - 2010-11-22 13:48:28
|
Hi Carsten, i have wrote some code and record a video to demonstrate my problem. The Video http://dl.dropbox.com/u/9755257/IMG_0238.MOV In this video (sorry for the bad quality, i have no suitable screen recorder), you can see two passive windows. On the left a torus and one the right a box. I am changing the parameters of the box (x res, y res, z res) and after some changes the right box disappears. After clicking in the left passive window the torus also disappears. After some more changes the right box appears and after clicking in the left passive window there appears also a box. But there is no code that paints a box in the left passive window. I have no idea why this happens. Here is a zip file with the source code. http://dl.dropbox.com/u/9755257/OSGTwoQGLWidgets.zip Here a precompiled windows exe. http://dl.dropbox.com/u/9755257/OSGTwoQGLWidgets_Debug.zip And the single files (same as in OSGTwoQGLWidgets.zip) http://dl.dropbox.com/u/9755257/main.cpp http://dl.dropbox.com/u/9755257/MainWindow.cpp http://dl.dropbox.com/u/9755257/MainWindow.h http://dl.dropbox.com/u/9755257/OSGWidgetManager.cpp http://dl.dropbox.com/u/9755257/OSGWidgetManager.h At the moment I have no Linux makefile to compile this project under Linux. But you just need the Qt libs QtCore, QtGUI and QtGL. A OSG qt binding is not required. Thanks Johannes |