Search code examples
c++qtwindows-7visual-c++-2010

hijackWindow() context created for


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?


Solution

  • 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.