12 |
qApp->setOverrideCursor( QCursor( Qt::BlankCursor) ); |
qApp->setOverrideCursor( QCursor( Qt::BlankCursor) ); |
13 |
|
|
14 |
connect(this, SIGNAL( loadStarted() ), this, SLOT( test() ) ); |
connect(this, SIGNAL( loadStarted() ), this, SLOT( test() ) ); |
15 |
|
|
16 |
|
QTimer* timer = new QTimer(this); |
17 |
|
connect(timer, SIGNAL(timeout()), this, SLOT(onTimer())); |
18 |
|
timer->start(1000); |
19 |
} |
} |
20 |
|
|
21 |
void MyWebView::show() { |
void MyWebView::show() { |
69 |
std::cout << "test" << std::endl; |
std::cout << "test" << std::endl; |
70 |
} |
} |
71 |
|
|
72 |
|
|
73 |
|
void MyWebView::onTimer() { |
74 |
|
static int count = 0; |
75 |
|
count++; |
76 |
|
|
77 |
|
if (count == 10) { |
78 |
|
system("xset dpms force off"); |
79 |
|
} |
80 |
|
|
81 |
|
std::cout << "timer" << std::endl; |
82 |
|
} |