View Single Post
Posts: 172 | Thanked: 193 times | Joined on Nov 2009 @ Germany
#4
Originally Posted by percy View Post
Edit: It seems problematic for me that the hbox layout is used in layoutLandscape and layoutPortrait. So there are 2 layout working on hbox.
Looking at the documentation of QLayout it says under 'addItem':

Note: The ownership of item is transferred to the layout, and it's the layout's responsibility to delete it.
So this could be one of the problems you are facing (assuming that it's the same for addLayout). I would work from your working solution slowly backwards until it doesn't work anymore. Then you should be close to the problem.

That's at least how I do in in my projects.

I would assume that the PLLayout class is working as desired but you are using it the wrong way or your own layout stuff has a bug.