code: def widgetSubCheckBoxRect(widget, option):
      
      opt = QtWidgets.QStyleOption()
      opt.initFrom(widget)
      style = widget.style()
      return style.subElementRect(QtWidgets.QStyle.SE_ViewItemCheckIndicator, opt, widget)
docs: Returns the rectangle of a check box drawn as a sub element of widget