I have an application in Qt-4 with OpenGL. And I want to have in the title bar the FPS. But I can't find any examples on source of how to implement it.