Hello,
Where do you reset stop_bool
? If it is false
and never changes, you’ll have an infinite loop and your program just hangs. Also, is there a reason to load the data and render the scene in a loop?
If stop_bool
is reset in, say, the click event of a button, you must yield execution to Qt from inside the for
loop so it can process user events that may be queued. Maybe putting a QApplication::processEvents()
inside the loop will do.
regards,
Paulo