[Qt-interest] capture screen
pengliang(彭亮)
pengliang at founder.com
Sat Jun 12 07:27:28 CEST 2010
Hi All:
Please see the snippet bellow. (I want to minimizied the windows and capture the screen, but application capture screen before the window was fully minimized.) why? Can anybody tell me why? Or give me some ideas.
Thanks. Have a nice day!
------------------ snippet ------------------------------------------------
if(setHideWnd == true) {
windowHideShow();
//QTimer::singleShot(200,this,SLOT(capture_screen()));
// while(this->isVisible())
while(this->isHidden())
{
//qApp->processEvents();
capture_screen();
windowHideShow();
}
} else {
capture_screen();
}
void MainWindow::windowHideShow()
{
if(isHideWnd == true)
{
//showNormal();
this->show();
isHideWnd = false;
activateWindow();
} else {
//showMinimized();
this->hide();
hide();
isHideWnd = true;
}
}
---------------- picture ----------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100612/3d3e69ca/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 4378 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100612/3d3e69ca/attachment.jpe
More information about the Qt-interest-old
mailing list