Maybe it is easier to use QGridLayout, which also can handle widgets covering several rows/columns?