home_layout->addWidget(btn1,0,1,1,1);
home_layout->addWidget(btn2,1,1,1,1);
home_layout->addWidget(btn3,2,3,1,1);
home_layout->setColumnStretch(0,1);
home_layout->setColumnStretch(1,2);
home_layout->setColumnStretch(2,1);
home_layout->setRowStretch(0,1);
home_layout->setRowStretch(1,1);
home_layout->setRowStretch(2,1);
home_layout = new QGridLayout();
home_layout->addWidget(btn1,0,1,1,1);
home_layout->addWidget(btn2,1,1,1,1);
home_layout->addWidget(btn3,2,3,1,1);
home_layout->setColumnStretch(0,1);
home_layout->setColumnStretch(1,2);
home_layout->setColumnStretch(2,1);
home_layout->setRowStretch(0,1);
home_layout->setRowStretch(1,1);
home_layout->setRowStretch(2,1);
To copy to clipboard, switch view to plain text mode
Bookmarks