I was looking at the Qt library of OpenGL samples, but see that I think they have the same problem that wxWidgets does. Basically, all OpenGL updates need to be triggered by a timer event. For example:
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(rotateOneStep()));
timer->start(20);
The rotateOneStep function then calls update/paint on the OpenGL context. The problem I have is that I want to run at the max FPS I can get. Usually, one does this in the WinMain or other message pump loop:
while()
{
processmessage();
dispatchmessage();
drawscene();
}
Is there a way to do this in Qt?
Thanks in advance,
Bookmarks