Vova Beliy(deleted)
|
How to get a screenshot of the window with area of OpenGL in QNX6.6?
|
Vova Beliy(deleted)
11/04/2016 3:35 AM
post117084
|
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?
|
|
|