8 MyWidget::MyWidget(QWidget
*parent
)
13 QVBoxLayout
*labels
= new QVBoxLayout();
14 for (int i
= 0; i
< max
; i
++) {
15 m_label
= new QLabel("TextLabel", this);
16 labels
->addWidget(m_label
);
19 QVBoxLayout
*buttons
= new QVBoxLayout();
20 for (int i
= 0; i
< max
; i
++) {
21 m_button
= new QPushButton("PushButton", this);
22 buttons
->addWidget(m_button
);
25 QHBoxLayout
*main_layout
= new QHBoxLayout(this);
26 main_layout
->addItem(labels
);
27 main_layout
->addItem(buttons
);