I would like to know how to update and display game objects when using Qt. For instance. with a typical game you will have an event loop, but Qt just has exec() . What is the correct way to update and render game objects using Qt? How do I do things like get time between each frame to update my game objects? Am I using a separate thread for all this?
My question is very similar to this thread , except that I am not trying to avoid the standard Qt processes.
Edit: Sorry for the incomplete question. I believe tmpearce already answered my question, but here is a basic example of what I'm trying to do if someone else has the same problem:
int main(int argv, char **args) { QApplication app(argv, args); ApplicationWindow window; window.show();
Greetings.
source share