Hello,
cant get good result for form height resizing , if hiding some elements
creating form in designer, it looks like:
vboxlayout1->addWidget( textbox1 );
vboxlayout1->addWidget( textbox2 );
vboxlayout1->addWidget( textbox3 );
groupBox->addLayout(vboxlayout);
hboxLayout->addWdiget( push_ok );
hboxLayout->addWdiget( push_cancel );
vboxlayout->addWidget( groupBox );
vboxlayout->addLayout(vboxlayout);
......
//in aplication settiing
textbox1->setVisible(false);
textbox1->setVisible(false);
vboxlayout1->addWidget( textbox1 );
vboxlayout1->addWidget( textbox2 );
vboxlayout1->addWidget( textbox3 );
groupBox->addLayout(vboxlayout);
hboxLayout->addWdiget( push_ok );
hboxLayout->addWdiget( push_cancel );
vboxlayout->addWidget( groupBox );
vboxlayout->addLayout(vboxlayout);
......
//in aplication settiing
textbox1->setVisible(false);
textbox1->setVisible(false);
To copy to clipboard, switch view to plain text mode
form height is not changed, adjustsize not changing height also
Bookmarks