Methods of type QGridLayout¶
Below is a list of the available methods provided by the QGridLayout type. Click on a method name to see its detailed description and examples.
| Method | Description | 
|---|---|
| addWidget(widget) | Adds a widget to the next available position in the grid. | 
| addWidget(widget, row, column) | Adds a widget to the specified cell ( row,column). | 
| addWidget(widget, row, column, rowSpan, columnSpan) | Adds a widget spanning multiple rows and/or columns. | 
| addWidgets(w1, w2, row, column) | Adds two widgets side by side in the same row, starting at the specified column. If row < 0, uses the next available row. | 
| addWidgets(w1, w2, w3, row, column) | Adds three widgets side by side in the same row, starting at the specified column. If row < 0, uses the next available row. | 
| addWidget(w1, w2) | Adds two widgets in sequence (equivalent to calling addWidgettwice). |