When I want to grab the whole window, I can only grab what is drawed with OpenGL in centralWidget.
QPixmap my_pixmap = QPixmap::grabWidget(ui->OpenGLWidget, 0, 0, frameto264.iWidth, frameto264.iHeigth);
What I have draw with QT, like QPixmap or QPainter(or even in statusBar), cant not be showed in grabWidget.
Can anyone tell me how to grab the whole mainwindow, or was the ui->OpenGLWidget using wrong?
It is my first time asking question on stackoverflow. If there is something wrong with my statement, please be free to correct it.