Hello,
I'm trying to implement an on-idle event for a single window application. What I did is creating a timer in the main window class and set the time out interval to 0. The on-idle callback function is invoked with no problem except that when the timer's timeout is 0, the application window's titlebar context menu does not render it's text until i hover over the items. So when rightclicking the title bar the menu shows but no items are rendered. Any idea why the timer causing this? Is there any work around?
timer.setInterval(0);
connect(&timer, SIGNAL(timeout()), SLOT(onIdle()));
timer.start();
...::onIdle()
{
// do something...
}
QTimer timer;
timer.setInterval(0);
connect(&timer, SIGNAL(timeout()), SLOT(onIdle()));
timer.start();
...::onIdle()
{
// do something...
}
To copy to clipboard, switch view to plain text mode
Thanks.
Bookmarks