[Qt-creator] QSplitters

Coda Highland coda at bobandgeorge.com
Tue Mar 9 19:18:02 CET 2010


> I had this same confusion a month or two ago.  It seems to me like
> there is some inconsistency in the design here.  QSplitter should
> either appear in the the list of widgets, or it should be changed to
> QSplitterLayout and inherit QLayout.  Just my two cents.  I'd lean
> towards turning QSplitter into an actual layout.

QSplitter has all of the behaviors of a widget -- it renders things to
the screen and it processes events. It couldn't be a layout because
layouts do nothing but calculate geometry when the widget they're
applied to is resized.

/s/ Adam




More information about the Qt-creator-old mailing list