code: def itemStyle(self):
          
          if ( self.useGroupStyleWithChildren() and self.childCount() ):
              return XGanttWidgetItem.ItemStyle.Group
          
          return self._itemStyle
docs: Returns the item style information for this item.
          
          :return     <XGanttWidgetItem.ItemStyle>