import operator


def size_maxed(inner, outer, exact=False):
    """Return True if the inner QSize meets or exceeds the outer QSize in at
    least one dimension.

    If exact is True, return False if inner is larger than outer in at least
    one dimension."""
    oper = operator.eq if exact else operator.ge

    return (oper(inner.width(), outer.width()) or
            oper(inner.height(), outer.height()))