Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to get a screenshot of the window with area of OpenGL in QNX6.6?: (3 Items)
   
How to get a screenshot of the window with area of OpenGL in QNX6.6?  
Good day. I am writing an app under QNX6.6 - screenhot of the window, on which have is widget QGLWidget.
I can not make a screenshot of the window with area of OpenGL.
Here is the code in Qt:

-----------------------------------------------------
QPixmap pixmap;
QString file_image;

pixmap = QPixmap::grabWidget(QApplication::activeWindow(), this->pos().x(), this->pos().y(), this->width(), this->
height());
file_image = QApplication::applicationDirPath() + "/screen_img.png");
pixmap.save(file_image, "PNG");
-----------------------------------------------------

The image is created, but instead of OpenGL - black area.
How in QNX6.6 get a screenshot of a window or of the entire display with area of OpenGL?
Re: How to get a screenshot of the window with area of OpenGL in QNX6.6?  
Re: How to get a screenshot of the window with area of OpenGL in QNX6.6?