The new animation platform in Qt 4.6+ is based on QTimeLine, which has the public function void setUpdateInterval (int interval). Based on QTimeLine, QGraphicsItemAnimation can access this function, but new animation framework classes (like QPropertyAnimation) cannot! Is the animation frame blocked up to about 60 updates per second, which corresponds to a pixel-to-pixel transition of 60 pixels per screen per second (for the animation property of the QPropertyAnimation position) or is there a way to increase this without overriding everything?
, , , OS/Qt . Qt Main Loop .
, , , , . , , . , , 60 .
, .
Qt , , , , , Qt 5, , .
, , , , . video, . Qt , , .
Qt 4.8:
// You need qt source code to access QUnifiedTimer for QAnimationDriver // Alternatively, copy'n'paste only the declaration for QUnifiedTimer class. #include <qt/src/corelib/animation/qabstractanimation_p.h> ... // In the animation thread, set the update timing interval. // The smaller the interval, the more updates and more CPU consumption. int animationTimingInterval = update_interval_in_msecs_u_want; QUnifiedTimer::instance()->setTimingInterval(animationTimingInterval);
Source: https://habr.com/ru/post/1757030/More articles:Django, Borg template, API calls, caching results - pythonLarge Matrix Inversion Methods - c ++Defining the primary keys of an object using context in Entity Framework 4.0 - reflection100% connreset with httperf? - load-testingStrange Java HashMap behavior - unable to find matching object - javaIs using checked exceptions in external APIs a good idea? - javaScroll only the page element, not the entire page - javascriptDelphi signature in exe files - delphiПользовательский контроль и приложение в одном проекте - c#How do you get / invite beta testers for your iPhone / iPad application? - iphoneAll Articles