一个最简单的 QGridLayout 布局 QGridLayout* grid = new QGridLayout(this); grid->addWidget(new QPushButton("button 0,0"), 0, 0)