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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -