[Qt-creator] Why QtC does not use QDockWidget for most tool-panel

Ziller Eike Eike.Ziller at theqtcompany.com
Mon Apr 11 10:02:38 CEST 2016

> On Apr 8, 2016, at 3:43 PM, Prav <pr12og2 at programist.ru> wrote:
> Hi, Ziller Eike
>> There are features that would need to be adapted, like
>> sharing of nav side bar between modes,

Just to make clear: That was the answer to the question “wouldn’t it be just exchanging the base class of something to QMainWindow/QDockWidget”.

> Nav bar is the one which selects modes? If yes ... it is small ... can be kept as is.

Not that one.

> If you mean the one which have "Open docs" and "Projets" pannels then
> why it is needed if all pannels would be docked to each other the way
> user wants.

E.g. Edit mode and Debug mode share the exact same navigation side bar. They are in the exact same state. Actually it is the same widget instance.
Additionally, mode widgets do not have a common base.

> But sidebar class(es) itself can be kept as manger of dockable panels (which are now closed inside sidebar)
>> Alt+0 nav side bar hiding
> Easy decision ... hide all dockable-pannels which is currenlty included in sidebar
>> nav sidebar splitting
> DockWindows can split themselves ... or this is about something else

This is about how much code needs to be rewritten to make this work.

>> sensible integration with the modes that already have dock widgets
> Mmm ... what? DockWindows can be docked to currect DockWindows. What is "sensible integration”?

See above about Debug and Edit mode.

>> escape key logic (which closes extra panels like output panes and context help the output panes in general, and possibly more.
> Nothing really need to be changed ... you can hide same pannels as now with ESC.
> Why we need touch this?

If we are not talking about making output panes dockable - fine. But I don’t see why we wouldn’t be talking about that.

> We are speaking only about dockability of pannels ... everything else ... why we need change it?
> Let's do not include other ideas to this dockability feature if they are not "must have" for work of this feature
> There is also a way to not touch sidebar but create new dockable pannels with same content as in pannels of sidebar.
> I am not sure that I described idea clearly ... can do more if needed ...
> but this seems like the most easy way to adapt dockability ... like do not touch current structure but add dockable panels which will
> reuse implementation of current side-bar pannels (which may be need to be adapted a little bit for use in both sidebar and in dockable pannels).
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

Eike Ziller, Principle Software Engineer - The Qt Company GmbH
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

More information about the Qt-creator mailing list