A QGridLayout might be a good fit for this also.