--- infoscreen/MyWebView.cpp 2009/12/11 21:47:49 506 +++ infoscreen/MyWebView.cpp 2009/12/11 22:15:18 507 @@ -12,6 +12,10 @@ qApp->setOverrideCursor( QCursor( Qt::BlankCursor) ); connect(this, SIGNAL( loadStarted() ), this, SLOT( test() ) ); + + QTimer* timer = new QTimer(this); + connect(timer, SIGNAL(timeout()), this, SLOT(onTimer())); + timer->start(1000); } void MyWebView::show() { @@ -65,3 +69,14 @@ std::cout << "test" << std::endl; } + +void MyWebView::onTimer() { + static int count = 0; + count++; + + if (count == 10) { + system("xset dpms force off"); + } + + std::cout << "timer" << std::endl; +}