Class: QgsLayoutItemManualTable

class qgis.core.QgsLayoutItemManualTable(layout: QgsLayout)

Bases: QgsLayoutTable

Constructor for QgsLayoutItemManualTable, attached to the specified layout.

Ownership is transferred to the layout.

A layout table subclass that displays manually entered (and formatted) content.

New in version 3.12.

Parameters

layout

calculateMaxColumnWidths()
calculateMaxRowHeights(self) → bool
Return type

bool

childEvent()
columnWidths(self) → List[float]

Returns the list of column widths (in millimeters) to use when rendering the table.

A width of 0 indicates that the column width should be automatically calculated.

See also

rowHeights()

Return type

List[float]

conditionalCellStyle(self, row: int, column: int)QgsConditionalStyle
Parameters
  • row (int) –

  • column (int) –

Return type

QgsConditionalStyle

connectNotify()
contentsContainsRow()
create(layout: QgsLayout)QgsLayoutItemManualTable

Returns a new QgsLayoutItemManualTable for the specified parent layout.

Parameters

layout (QgsLayout) –

Return type

QgsLayoutItemManualTable

customEvent()
disconnectNotify()
displayName(self) → str
Return type

str

drawHorizontalGridLines()
headers(self) → object

Returns a reference to the list of headers shown in the table

See also

setHeaders()

Return type

object

icon(self) → QIcon
Return type

QIcon

includeTableHeader(self) → bool

Returns True if the table includes a header row.

Return type

bool

isSignalConnected()
readObjectPropertiesFromElement()
readPropertiesFromElement(self, itemElem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) → bool
Parameters
Return type

bool

recalculateTableSize()
receivers()
rowHeights(self) → List[float]

Returns the list of row heights (in millimeters) to use when rendering the table.

A height of 0 indicates that the row height should be automatically calculated.

See also

setRowHeights()

See also

columnWidths()

Return type

List[float]

rowRange()
rowsVisible()
sender()
senderSignalIndex()
setColumnWidths(self, widths: Iterable[float])

Sets the list of column widths (in millimeters) to use when rendering the table.

A width of 0 indicates that the column width should be automatically calculated.

See also

columnWidths()

Parameters

widths (Iterable[float]) –

setHeaders(self, headers: object)

Replaces the headers in the table with a specified list of QgsLayoutTableColumns.

See also

headers()

Parameters

headers (object) –

setIncludeTableHeader(self, included: bool)

Sets whether the table includes a header row.

Parameters

included (bool) –

setRowHeights(self, heights: Iterable[float])

Sets the list of row heights (in millimeters) to use when rendering the table.

A height of 0 indicates that the row height should be automatically calculated.

See also

rowHeights()

Parameters

heights (Iterable[float]) –

setTableContents(self, contents: object)

Sets the contents of the table.

See also

tableContents()

Parameters

contents (object) –

tableContents(self) → object

Returns the contents of the table.

See also

contents()

Return type

object

timerEvent()
totalHeight()
totalWidth()
type(self) → int
Return type

int

writeObjectPropertiesToElement()
writePropertiesToElement(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) → bool
Parameters
Return type

bool