[Qt-interest] Signal subWindowActivated not emitted correctly using QGLWidget in QMdiSubWindow

unimd at web.de unimd at web.de
Thu Sep 2 17:22:01 CEST 2010


Hello everybody,

I made an interesting observation using QMdiArea...
I derived a class from QGLWidget which I added to my QMdiArea by:

MyGLWidget *ogl = new MyGLWidget;
mdiArea->addSubWindow(ogl);

I added a couple of these Widgets to my mdiarea like that. Then I started clicking between the windows so that the signal subWindowActivated(QMdiSubWindow *) is emitted. As long as I click directly in the title-bar of the specific window, the exact window is activated but after a while when I start clicking into the embedded QGLWidget of the QMdiSubWindow another window gets activated but my actual selected one... which is a behaviour I don't understand and don't want, of course.
Is that a qt bug? Or do I have to consider something when adding a QGLWidget to a mdiarea? Has anyone experienced something similar, cause I haven't found anything in the web...

Thanks in advance. K.
___________________________________________________________
WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für 
nur 19,99 €/mtl.!* http://web.de/DSL-Doppel-Flatrate/




More information about the Qt-interest-old mailing list