.clear() works, except for nested elements. I will do some kind of hack to get it to work.
Thanks.
Necolatis wrote in Mon Jul 14, 2014 1:30 am:.clear() works, except for nested elements. I will do some kind of hack to get it to work.
Necolatis wrote in Tue Jul 15, 2014 1:58 pm:In this line what does the second parameter do: vbox.addItem(scroll, 1)
Necolatis wrote in Tue Jul 15, 2014 1:58 pm:In this line, what does the number signify: .addStretch(1)
Necolatis wrote in Tue Jul 15, 2014 1:58 pm:Can I hide/show a layout item?
Necolatis wrote in Wed Jul 16, 2014 1:33 pm:Nice, thanks. That semi works now. When setting a layout to maximum/hint size 0,0 and stretchfactor to 0, it now gets smaller, but does not get size zero.
Anything else I can do?
Necolatis wrote in Wed Jul 16, 2014 1:33 pm:Also in aircraft-center I wonder why these lines have move and size, since its size and position is determined by layout: (has it any effect?)
box.addItem(...);
box.addSpacing(5);
box.addItem(...);
box.addSpacing(5);
box.addItem(...);
setVisible(bool visible)
isVisible()
isExplicitlyHidden()
show()
hide()
Users browsing this forum: No registered users and 2 guests