Layout Class

class qdesigner_internal::Layout

Baseclass for layouting widgets in the Designer (Helper for Layout commands) \internal. More...

Header: #include <Layout>
Inherits: QObject

Public Functions

virtual void setup()

Protected Functions

Layout(const QWidgetList &wl, QWidget *p, QDesignerFormWindowInterface *fw, QWidget *lb, LayoutInfo::Type layoutType)

Detailed Description

Classes derived from this abstract base class are used for layouting operations in the Designer (creating/breaking layouts).

Instances live in the Layout/BreakLayout commands.

Member Function Documentation

[protected] Layout::Layout(const QWidgetList &wl, QWidget *p, QDesignerFormWindowInterface *fw, QWidget *lb, LayoutInfo::Type layoutType)

p specifies the parent of the layoutBase lb. The parent might be changed in setup(). If the layoutBase is a container, the parent and the layoutBase are the same. Also they always have to be a widget known to the designer (e.g. in the case of the tabwidget parent and layoutBase are the tabwidget and not the page which actually gets laid out. For actual usage the correct widget is found later by Layout.)

[virtual] void Layout::setup()

The widget list we got in the constructor might contain too much widgets (like widgets with different parents, already laid out widgets, etc.). Here we set up the list and so the only the "best" widgets get laid out.