From 81ef5d34a9ffccf46b0ba64239fee1d27e839ed1 Mon Sep 17 00:00:00 2001 From: Piotr Mintus Date: Wed, 19 May 2021 15:20:32 -0700 Subject: [PATCH] Update usdrecord.py Set the QtCore.Qt.WA_DontShowOnScreen attribute on the glWidget window. This change prevent usdrecord from ever being displayed. Fixes #1521 --- pxr/usdImaging/bin/usdrecord/usdrecord.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pxr/usdImaging/bin/usdrecord/usdrecord.py b/pxr/usdImaging/bin/usdrecord/usdrecord.py index 26c75b203c..0311075f32 100644 --- a/pxr/usdImaging/bin/usdrecord/usdrecord.py +++ b/pxr/usdImaging/bin/usdrecord/usdrecord.py @@ -42,9 +42,11 @@ def _SetupOpenGLContext(width=100, height=100): try: from PySide2 import QtOpenGL from PySide2.QtWidgets import QApplication + from PySide2 import QtCore except ImportError: from PySide import QtOpenGL from PySide.QtGui import QApplication + from PySide import QtCore application = QApplication(sys.argv) @@ -54,6 +56,7 @@ def _SetupOpenGLContext(width=100, height=100): glWidget = QtOpenGL.QGLWidget(glFormat) glWidget.setFixedSize(width, height) + glWidget.setAttribute(QtCore.Qt.WA_DontShowOnScreen) glWidget.show() glWidget.setHidden(True)