code: def setCollapsed( self, state ):
          
          self.setCollapsible(True)
          if not self._inverted:
              self.setChecked(not state)
          else:
              self.setChecked(state)
docs: Sets whether or not this group box is collapsed.
          
          :param      state | <bool>