I am trying to update graphics scene by calling update() . When i wanted to scroll down the scene after some time, the application performs the action after some time(15 sec or more). I am updating the scene in the particular view port region. Totally the application gets slow like after 1hr or more and does not respond. Is there any solution to this so that application does not get slow for continuous running
Sample Code :
while(true)
{
scene->update(view->mapToScene(view->visibleRegion().boundingRect()).boundingRect().to Rect());
sleep(1);
}
The above code runs in a thread.
Bookmarks