GridLayout ile koordinat Vererek Forma Elemanları Yerleştiriyoruz..Asagıda Koyu yazılan Yerde Belirityoruz Hangi Eleman Izgarada Nasıl Duracagını
QWidget *widget =new QWidget();
QGridLayout *grid=new QGridLayout;
QLabel *label=new QLabel("isim");
QLineEdit *line =new QLineEdit();
QLabel *label1=new QLabel("soyad");
QLineEdit *line1 =new QLineEdit();
QLabel *label2=new QLabel("Sehir");
QLineEdit *line2 =new QLineEdit();
QPushButton *buton=new QPushButton("Yolla");
grid->addWidget(label,0,0);
grid->addWidget(line,0,1);
grid->addWidget(label1,1,0);
grid->addWidget(line1,1,1);
grid->addWidget(label2,2,0);
grid->addWidget(line2,2,1);
grid->addWidget(buton,3,1);
widget->setLayout(grid);
widget->show();
QWidget *widget =new QWidget();
QGridLayout *grid=new QGridLayout;
QLabel *label=new QLabel("isim");
QLineEdit *line =new QLineEdit();
QLabel *label1=new QLabel("soyad");
QLineEdit *line1 =new QLineEdit();
QLabel *label2=new QLabel("Sehir");
QLineEdit *line2 =new QLineEdit();
QPushButton *buton=new QPushButton("Yolla");
grid->addWidget(label,0,0);
grid->addWidget(line,0,1);
grid->addWidget(label1,1,0);
grid->addWidget(line1,1,1);
grid->addWidget(label2,2,0);
grid->addWidget(line2,2,1);
grid->addWidget(buton,3,1);
widget->setLayout(grid);
widget->show();