hijackWindow() context created for

438 Views Asked by At

I'm developing desktop Qt 4.7.1 application for Windows 7 using Visual Studio 2010 and cl compiler. OpenGL widgets are used.

Some time ago I started to receive messages like the following ones during my application initialization:

hijackWindow() context created for QWidget(0x1c8f070, name = "x1") 1 
hijackWindow() context created for QGroupBox(0x1c8f5f8, name = "x2") 2 
hijackWindow() context created for QGroupBox(0x19f70b0, name = "x3") 3 
hijackWindow() context created for QGroupBox(0x19f9d40, name = "x4") 4 
hijackWindow() context created for QGraphicsView(0x19fae28, name = "x5") 5 

What could be the reason for these messages? How can I disable window hijacking since it consumes a lot of time?

2

There are 2 best solutions below

2
Vladimir On BEST ANSWER

The problem of the time consuming was in using opengl graphics system instead of raster one. So the solution is to add the following parameter to command line:

-graphicssystem raster

Or to build the whole Qt with this flag.

5
AudioBubble On

This is just a debug message emitted by Qt library when creating a GL context for a widget. I think this message should not appear if you use release versions of Qt libraries (they must be built with QT_NO_DEBUG_OUTPUT or QT_NO_DEBUG macros defined, which disables calls to qDebug).