I'm trying to embedd Irrlicht into a Qt GUI.
For the Irrlicht Widget I created a class that has QGLWidget as base class.
In the constructor I'm doing everything to enable the widget as a widget in which Irrlicht can paint:
Code: Select all
setAttribute(Qt::WA_OpaquePaintEvent);
setAttribute(Qt::WA_NoSystemBackground);
setAttribute( Qt::WA_PaintOnScreen, true );X Error: BadWindow (invalid Window parameter)
From call : X_ChangeWindowAttributes
I searched the web for a solution, but nothing really helped.
Is there a way for me to get the information, what EXACTLY is going wrong? Can I find out what causes the "X Error: BadWindow..."-Error?
Thanks a lot,
D.
PS: the software renderer works fine with this widget...