qt - How to removing remaining spacing after hide a row in QFormLayout -


hide row following code

field.hide() formlayout.labelforfield(field).hide() 

one disadvantage of above while items in row hidden spacing above , below row remains, is, rows above , below hidden row appear further spread apart rest of items in layout. how removing remaining spacing after hide row in qformlayout?

hide:

field->hide(); label->hide(); formlayout->removewidget(field); formlayout->removewidget(label); 

show:

formlayout->insertrow(row, label, field); label->show(); field->show(); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -