Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> There are two solutions:
Abdelrazak> 1) Make the central widget a QTabWidget in GuiView (which
Abdelrazak> is a QMainApplication). Then host a new QWorkArea for each
Abdelrazak> tab. In this context, this would mean that two WorkArea in
Abdelrazak> two tabs or in two split windows would look the same to
Abdelrazak> the parent GuiView.
Abdelrazak> 2) Make the GuiWorkArea viewport a tab widget and handle
Abdelrazak> the buffer switch there. This would mean that there's only
Abdelrazak> one WorkArea.
Abdelrazak> I like 1) more but 2) might be easier to do.
I do not know how this fits in your discussion, but we could just have
a tab strip (in a backend toolbar, maybe?) and manage the switches by
hand (with LFUNs).
Well, that is a possibility indeed (using QTabBar instead of the full
blown QTabWidget). But I'd rather use QTabWidget with solution 1)
because this will allow us to do nitty things like "Detach Tab in new
Window" or "Detach Tab in split Window".
> I suspect that letting Qt handle all that will
> remove some of our liberty.
Pensée du Jour: Liberty is good only if you make use of it.
Abdel.