[Development] Feature request: several layouts in a single ui file
Yves Bailly
yves.bailly at laposte.net
Sun Sep 1 15:57:02 CEST 2013
On 01/09/2013 05:49, Sze Howe Koh wrote:
> On 1 September 2013 05:27, Yves Bailly <yves.bailly at laposte.net> wrote:
>> On 31/08/2013 14:42, Mark wrote:
>>> A nice way to load different gui versions is by combining states [1]
>>> and the loader object [2] and just load the gui you want based on the
>>> state you set.
>>>
>>> [1] http://qt-project.org/doc/qt-5.1/qtquick/qml-qtquick2-state.html
>>> [2] http://qt-project.org/doc/qt-5.1/qtquick/qml-qtquick2-loader.html
>>
>> If I understand things correctly, using the loader is a bit like
>> "destroy the current GUI" followed by "rebuild a new GUI".
>>
>
> You can achieve that with traditional QWidgets without destroying and
> reconstructing any objects.
I'm perfectly aware of this, that's what I'm doing "by hand" for now.
What I was suggesting in the beginning of this thread, was to add
support for this in QtDesigner and UI files.
--
(o< | Yves Bailly | -o)
//\ | Linux Dijon : http://www.coagul.org | //\
\_/ | | \_/`
More information about the Development
mailing list