// Inside the main window class constructor
...
timer.setInterval(0);
connect(...)
t0 = tbb::tick_count::now();
...
MyMainWindow::OnIdle()
{
t1 = tbb::tick_count::now();
if ((t1 - t0).seconds() < ...) {
// do nothing
} else {
// do something...
}
pApp->processEvents();
}
// Inside the main window class constructor
...
timer.setInterval(0);
connect(...)
t0 = tbb::tick_count::now();
...
MyMainWindow::OnIdle()
{
t1 = tbb::tick_count::now();
if ((t1 - t0).seconds() < ...) {
// do nothing
} else {
// do something...
}
pApp->processEvents();
}
To copy to clipboard, switch view to plain text mode
Bookmarks