PDA

View Full Version : External openGL paining on a Qt widget does not work



MasterBLB
10th November 2012, 14:20
Hello

Qt version 4.5.0
System Windows XP and 7

I'd like to pass a simple,empty QWidget and pass that widget into a 2D engine which uses openGL internally.
Well,there is something like QWidget::winId() which returns me HWND,and the engine can paint on existing window using HDC.It works and has been tested using pure WinAPI
Sadly,it just does not work with Qt windows,because I see no openGL painting on my widget,and I've no idea why :/
I've found only Qt::MSWindowsOwnDC and QGLWidget,but neither solved my issue.

What I missed?Please give me some hint how to solve my problem.