Skip to content
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

Closed
pmintus-atvi opened this issue May 19, 2021 · 3 comments
Closed

[usdrecord] Prevent Qt window from showing #1521

pmintus-atvi opened this issue May 19, 2021 · 3 comments

Comments

@pmintus-atvi
Copy link

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

  1. Execute usdrecord

System Information (OS, Hardware)

Windows 10 20H2

Package Versions

21.05

@pmintus
Copy link
Contributor

pmintus commented May 19, 2021

I plan on submitting a fix for this.

pmintus pushed a commit to pmintus/USD that referenced this issue May 19, 2021
Set the QtCore.Qt.WA_DontShowOnScreen attribute on the glWidget window. This change prevent usdrecord from ever being displayed.

Fixes PixarAnimationStudios#1521
@jtran56
Copy link

jtran56 commented May 21, 2021

Filed as internal issue #USD-6701

@tallytalwar
Copy link
Contributor

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.
This change prevents the usdrecord window from being displayed for a split second. An change has been made for the same internally and should go out in the next dev branch push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants