Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to synchronize with vsync



  • I'm doing a simple gauge by rotating an Image of a needle with its rotation property. The needle's angle is controlled by data coming in over USB. Currently, I'm doing

    Window {
        onFrameSwapped: {
            rotate_needle_image(angle_from_usb);
            update();
        }
    }
    

    Is this the correct way to synchronize drawing with vsync?


Log in to reply