def get_max_width(*layouts):
    """Get the maximum width of the children of a layout."""
    max_width = 0
    for layout in layouts:
        widgets = (layout.itemAt(i) for i in range(layout.count()))
        for widget in widgets:
            width = widget.sizeHint().width()
            if width > max_width:
                max_width = width
    return max_width