PDA

View Full Version : Layout runtime customization



altVis
18th April 2008, 06:54
Hi!
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?
:)

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

altVis
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.

wysota
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.