[Development] Feature request: several layouts in a single ui file
Yves Bailly
yves.bailly at laposte.net
Mon Sep 2 12:44:10 CEST 2013
On 02/09/2013 09:46, Saether Jan-Arve wrote:
> What you are suggesting should be possible, but I would like to explore if there can be a more generic way.
> You are suggesting to push this even further, i.e. one layout might use a QComboBox instead of a groupbox with radio buttons.
> * If its pushed far enough, wouldn't this be like having two separate .ui files that could be switched?
I had not considered to go as far as change the contents itself - this would imply
to destroy (or hide) some things, then to create (or show) some others. Maybe
it's a step too far...
But overall, indeed it's a bit like having two .ui then switch between them -
with the important goal to avoid as much as possible to destroy/recreate
things. In the beginning it was just about changing the layout and some
properties (e.g. some size policies).
Regards,
--
(o< | Yves Bailly | -o)
//\ | Linux Dijon : http://www.coagul.org | //\
\_/ | | \_/`
More information about the Development
mailing list