@staticmethod
def margins_func(widget_item):
    """ Get the margins for the given widget item.

        """
    m = widget_item.widget().contentsMargins()
    return m.top(), m.right(), m.bottom(), m.left()
