View Full Version : Documentation about layout manager implementation

9 Jun 2015, 12:21 AM

i would like to implement my own layout manager. I had a look at the source of the existing managers but a lot of methods used/overwritten in there are private/protected and not documented.

Are there any docs about how to implement a layout manager and the meaning of the methods?

Best regards

9 Jun 2015, 12:22 PM
Writing your own layout is very difficult, I would advise taking any other alternative.

The best docs I'm aware of are here:


Largely you will have to rely on studying the source to other layouts. Concepts like 'private' don't really apply, a layout's gotta do what a layout's gotta do.

9 Jun 2015, 12:32 PM
Thanks for your reply. I also found the link that you posted and it helped me in getting started. Also after studying the layout sources i managed to get the layout i wanted using the Fit-Layout as a basis and overwriting the positionItemX, positionItemY, setItemHeight and setItemWidth methods. I guess that this will be fine for me.