Edit: It seems problematic for me that the hbox layout is used in layoutLandscape and layoutPortrait. So there are 2 layout working on hbox.
Note: The ownership of item is transferred to the layout, and it's the layout's responsibility to delete it.