• Basics
    • WContainerWidget
    • WTemplate
    • WText
    • WAnchor
    • WBreak
    • WImage
    • WGroupBox
    • WStackedWidget
    • WTable
    • WMenu
    • WTree
    • WTreeTable
    • WPanel
    • WTabWidget
    • WProgressBar
  • Form Widgets
    • WPushButton
    • WCheckBox
    • WRadioButton
    • WComboBox
    • WSelectionBox
    • WLineEdit
    • WSpinBox
    • WTextArea
    • WCalendar
    • WDatePicker
    • WInPlaceEdit
    • WSuggestionPopup
    • WTextEdit
    • WFileUpload
    • WPopupMenu
  • Form Validators
  • Ext Widgets
    • Ext::Button
    • Ext::LineEdit
    • Ext::NumberField
    • Ext::CheckBox
    • Ext::ComboBox
    • Ext::RadioButton
    • Ext::Calendar
    • Ext::DateField
    • Ext::Menu/ToolBar
    • Ext::Dialog
  • Vector Graphics
    • Emweb logo example
    • Paintbrush example
  • Special Purpose
    • WGoogleMap
    • WMediaPlayer
    • WSound
    • WVideo
    • WAudio
    • WFlashObject
  • Dialogs
    • WDialog
    • WMessageBox
    • Ext Dialogs
  • Charts
    • Category Charts
    • Scatter Plots
    • Pie Charts
  • MVC Widgets
    • The Models
    • Proxy models
    • Combobox Views
    • WTableView
    • WTreeView
    • Chart Views
  • Events
    • WKeyEvent
    • WMouseEvent
    • WDropEvent
  • Style and Layout
    • CSS
    • WLoadingIndicator
    • WBoxLayout
    • WGridLayout
    • WBorderLayout
WGridLayout [doc]

This class organizes children widgets inside a WContainerWidget in a grid.

Like WBoxLayout, a stretch factor defined for rows or columns is used to distribute excess space. In the example below, row 1 and columns 1 and 2 are given a non-zero stretch factor.

Item (0, 0)
Item (0, 1)
Item (0, 2)
Item (0, 3)
Item (1, 0)
Item (1, 1)
Item (1, 2)
Item (1, 3)
Item (2, 0)
Item (2, 1)
Item (2, 2)
Item (2, 3)
Events will be shown here.
Build a house
Roof included
Add a door
Add a window
Add furniture
Add a chair
Add a table