(self, val)
Override the QWidget::setVisible(bool) method to properly
           recalculate the editor viewport.
Override the QWidget::setVisible(bool) method to properly
           recalculate the editor viewport.
Override the QWidget :: setVisible ( bool ) method to properly recalculate the editor viewport .
def setVisible(self, val):
        """Override the QWidget::setVisible(bool) method to properly
           recalculate the editor viewport.
        """
        if val != self.isVisible():
            if val:
                super().setVisible(True)
            else:
                super().setVisible(False)
            self._editor.updateViewport()
def setVisible ( self , val ) : if val != self . isVisible ( ) : if val : super ( ) . setVisible ( True ) else : super ( ) . setVisible ( False ) self . _editor . updateViewport ( )