QWidget *widget=new QWidget;
widget->setWindowTitle("\t \t Horizontal ve Veritcal Nedir?");
widget->show();
QPushButton *btn1 =new QPushButton("Soldayım");
QPushButton *btn2 =new QPushButton("Ortadayım");
QPushButton *btn3 =new QPushButton("Sağdayım");
QHBoxLayout *hbx =new QHBoxLayout;
hbx->addWidget(btn1);
hbx->addWidget(btn2);
hbx->addWidget(btn3);
widget->setLayout(hbx); //EN ÖNEMLİ NOKTA BURA TAMAMINI BURADA ANA
WİDGETE MONTE EDİYORUZ
widget->setWindowTitle("\t \t Horizontal ve Veritcal Nedir?");
widget->show();
QPushButton *btn1 =new QPushButton("Soldayım");
QPushButton *btn2 =new QPushButton("Ortadayım");
QPushButton *btn3 =new QPushButton("Sağdayım");
QHBoxLayout *hbx =new QHBoxLayout;
hbx->addWidget(btn1);
hbx->addWidget(btn2);
hbx->addWidget(btn3);
widget->setLayout(hbx); //EN ÖNEMLİ NOKTA BURA TAMAMINI BURADA ANA
WİDGETE MONTE EDİYORUZ