code: def isCollapsed( self ):
          
          if not self.isCollapsible():
              return False
          
          if self._inverted:
              return self.isChecked()
          return not self.isChecked()
docs: Returns whether or not this group box is collapsed.
          
          :return     <bool>