Form destroys nested vbox layout
Added by Johannes Peters over 7 years ago
Hi,
I have an vbox layout inside an hbox layout. If the hbox layout contains vbox layout+empty container, then everything is fine. But if I use a form instead of the empty container, then the vbox layout gets ripped apart.
I added two screenshots
I use the following code:
vbox->addWidget(btn_menu);
vbox->addWidget(tree);
btn_menu->setMaximumSize(100,30);
tree->setMinimumSize(250,100);
hbox->addLayout(vbox);
hbox->addWidget(stack,1);
stack->addWidget(cam_settings_template);
stack->addWidget(empty_container);
tab_w->addTab(container_overview,"Overview", Wt::WTabWidget::PreLoading);
tab_w->addTab(container_settings,"Settings", Wt::WTabWidget::PreLoading);
I hope someone can help or point me in the right direction.
layout1.png (9.89 KB) layout1.png | Screenshot 1 everything ok (red hbox, green vbox) | ||
layout2.png (50.8 KB) layout2.png | Screenshot 2 with form |