Skip to content
ben-sangster edited this page Nov 10, 2010 · 2 revisions

Description

A grid layout used to order widgets in columns and rows.

Signals

N/A

Functions

void addLayout (Layout layout, int row, int column, [int rowSpan, int columnSpan])

  • Add layout to a grid layout at row and column.

  • If rowSpan and columnSpan are specified, layout will extend from row to rowSpan and column to columnSpan.

void addWidget (Widget widget, int row, int column, [int rowSpan, int columnSpan])

  • Add widget to a grid layout at row and column.

  • If rowSpan and columnSpan are specified, layout will extend from row to rowSpan and column to columnSpan.

int columnCount ()

  • Return the number of columns in the grid widget.

int rowCount ()

  • Return the number of rows in the grid widget.

int columnStretch (int column, [int stretch])

  • For column column, if stretch is specified, set the stretch on that column to stretch. Otherwise, return the stretch for that column.

int rowStretch (int row, [int stretch])

  • For row row, if stretch is specified, set the stretch on that row to stretch. Otherwise, return the stretch for that row.

API

layout

Clone this wiki locally