6int main(
int argc, 
char *argv[])
 
   32    window->setWindowTitle(
"QHBoxLayout");
 
   60    window->setWindowTitle(
"QVBoxLayout");
 
   88    window->setWindowTitle(
"QGridLayout");
 
  112    layout->addRow(button1, lineEdit1);
 
  113    layout->addRow(button2, lineEdit2);
 
  114    layout->addRow(button3, lineEdit3);
 
  117    window->setWindowTitle(
"QFormLayout");
 
The QApplication class manages the GUI application's control flow and main settings.
 
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
 
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
 
The QGridLayout class lays out widgets in a grid.
 
The QHBoxLayout class lines up widgets horizontally.
 
The QLineEdit widget is a one-line text editor.
 
The QVBoxLayout class lines up widgets vertically.
 
QApplication app(argc, argv)
[0]