grab 3d-window from QtOCC

I have tried the routines grabWidget and gradWindow(pix = QPixmap::grabWidget(myOCC);pix = QPixmap::grabWindow(myOCC->winId())). But both are delivering only an empty pixmap. If i grab the next higher widget i can see the window but the area of the 3d-output is still empty.
I have also tried myOCC->render(&pixmap) with the same result.

How can i grab the 3d-window from QtOcc?

Dmitry Khabi's picture
Thornton's picture

I could not link it because i have no library that contains "TsmGetWSAttri". TKOpenGL.lib, opengl32, glu32.lib do not contain this command. I have searched all libraries on my computer.

What library contains "TsmGetWSAttri"?