How to create a window during rendering #1475
Unanswered
idealist-dg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently building a project with vsgQt and I need to create multiple Windows for users to use. Just like in the example "vsgqtwindows", I only use one "vsgQt::Viewer", but I may create Windows at any time.
When I set "viewer->continuousUpdate=true" and "application.exec()", the program has been running and the rendering has been ongoing.
If you use "vsg::Visitor" and call the "createWindow" function in the example when pressing any key, the program will crash directly.
Of course, my project mainly uses Qt signals and slots. When "createWindow" is called, the rendering loop should not proceed, but the last rendering might not have been completed. The final result is that the screen will go black when I create the third window.
Do you have a solution? I would thank you very much if it could be solved.
Beta Was this translation helpful? Give feedback.
All reactions