View Full Version : Layout runtime customization

18th April 2008, 06:54
I just wonder if exist solution for runtime layout customization?( moving widgets on layout when app is runnning).

If of course no, then which way is fastest to implement it? Or may be there some solution, which could be a begin for this one?

18th April 2008, 07:20
Yes, you can always use QLayout::addWidget and QLayout:::removeWidget.

18th April 2008, 07:33
No. I mean runtime drag'n'drop:)
It must be done like in Qt designer(on moving show possible places, snap to other widgets etc ).
Of course it's simple if for instance using gridlayout, but layout must be like "flow layout" in examples.

18th April 2008, 08:59
If you provide drag&drop facilities around the methods I mentioned then yes. But you have to implement it yourself.