Writing a layout in QML
Editor: Ryan Abel
Robin Burchell, after finding himself fed up with the included layouts provided with QML, posted a short example layout: Sometimes, for whatever reason, the layouts provided "out of the box" in QML just don't cut it. Lately, I've been doing a few rather different things for experimentation and learning purposes that have meant I've run into quite a lot of these cases. When this happens, the first instinct is to fall into despair - but there's really no need for that. Writing your own layout really isn't that hard. Here's a small, fairly self contained example doing just that. Your editor ran into the same frustrations with the QML example code (especially trying to get QML PageStack to play nice). Check out the example code on the other end of the link.