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

Description

Binding for QTableWidget. Uses TableWidgetItems to hold information and TableWidgetSelectionRanges to indicate selected boxes.

Signals

cellClicked (int row, int col)

cellDoubleClicked (int row, int col)

currentItemChanged (TableWidgetItem current, TableWidgetItem previous)

itemSelectionChanged ()

Functions

void clear ()

void clearSpans ()

void clearContents ()

void setSpan (int row, int col, int rowCount, int colCount)

int columnWidth (int col, [int width])

bool columnHidden (int col, [bool hidden])

void insertColumn ([int col]) -- Inserts a column after col if col is specified, or at the end of the table if not.

void removeColumn ([int col]) -- Removes a column after col if col is specified, or at the end of the table if not.

void selectColumn (int col)

int column (TableWidgetItem item)

int columnCount (int count)

int currentColumn ()

int rowHeight (int row, [int height])

bool rowHidden (int row, [bool hidden])

void insertRow ([int row]) -- Inserts a row after row if row is specified, or at the end of the table if not.

void removeRow ([int row]) -- Removes a row after row if row is specified, or at the end of the table if not.

void selectRow (int row)

int row (TableWidgetItem item)

int rowCount (int count)

int currentRow ()

bool wordWrap ([bool hidden])

void resizeColumnToContents (int col)

void resizeColumnsToContents ()

void resizeRowToContents (int row)

void resizeRowsToContents ()

Widget cellWidget (int row, int col, [Widget widget])

void removeCellWidget (int row, int col)

TableWidgetItem item (int row, int col, [TableWidgetItem item])

TableWidgetItem[] findItems (String pattern, MatchFlag flags)

void sortItems (int col, QtSortOrder o)

TableWidgetItem takeItem (int row, int col)

TableWidgetItem currentItem (String str, MatchFlag flag)

TableWidgetItem[] selectedItems ()

TableWidgetSelectionRange[] selectedRanges ()

void setCurrentCell (int row, int col)

void setHorizontalLabels (String[] labels)

void setVerticalLabels (Stringp[] labels)

void setRangeSelected (TableWidgetSelectionRange)

TableWidgetItem horizontalHeaderItem (int col)

TableWidgetItem verticalHeaderItem (int row)

API

tableWidget

Clone this wiki locally