-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[usdrecord] Prevent Qt window from showing #1521
Comments
I plan on submitting a fix for this. |
Set the QtCore.Qt.WA_DontShowOnScreen attribute on the glWidget window. This change prevent usdrecord from ever being displayed. Fixes PixarAnimationStudios#1521
Filed as internal issue #USD-6701 |
Instead of doing a widget->show and then widget->hide, we can simply set the gl context to be current, which will NOT make the qt widget show up. Note that we simply need to record the framebuffer in an image and do not want to show the gl widget. |
Description of Issue
usdrecord creates a glWidget window that it hides after displaying it. On Windows, this causes the window to show up for a split second and then disappear. The window doesn't just cause a visual artifact, it also steals input focus since the window is created top-level. When usdrecord is used in a batch process, these windows blink into existence and flood the user's desktop.
Steps to Reproduce
System Information (OS, Hardware)
Windows 10 20H2
Package Versions
21.05
The text was updated successfully, but these errors were encountered: