//pGridLayoutComm->addWidget(pCommRecv,iRow,pGridLayoutComm->columnCount(),1,1,Qt::AlignLeft | Qt::AlignVCenter);
//pGridLayoutComm->addWidget(pCommSend,iRow+1,pGridLayoutComm->columnCount(),1,1,Qt::AlignLeft | Qt::AlignVCenter);
pGridLayoutComm->addWidget(pCommRecv,iRow,0);
pGridLayoutComm->addWidget(pCommSend,iRow+1,0);上面两行,会让控件靠左停靠,不会占整行
下面两行,删除对齐方向后,控件可以整行