QList
int QList::count() const
Returns the number of items in the list. This is effectively the same as size().
//返回列表的item數量
const T & QList::at(int i) const
Returns the item at index position i in the list. i must be a valid index position in the list (i.e., 0 <= i < size()).
//返回列表中index爲i的item
void QList::clear()
Removes all items from the list.
//從類表移除所有的item
void QList::append(const T & value)
Inserts value at the end of the list.
//在list末尾插入值
QTableWidegt***
rowCount : int
This property holds the number of rows in the table.
void setRowCount(int rows)
int rowCount() const
void QTableWidget::insertRow(int row)
Inserts an empty row into the table at row.
//插入空行
QTableWidgetItem * QTableWidget::item(int row, int column) const
Returns the item for the given row and column if one has been set; otherwise returns 0.
//返回給定行和列的item
void QTableWidget::setItem(int row, int column, QTableWidgetItem * item)
Sets the item for the given row and column to item.
//爲指定的行和列設置item
QTableWidgetItem
void QTableWidgetItem::setTextAlignment(int alignment)
Sets the text alignment for the item’s text to the alignment specified.
void QTableWidgetItem::setText(const QString & text)
Sets the item’s text to the text specified.
//設置item的text爲指定的text
QString QTableWidgetItem::text() const
Returns the item’s text.
//返回item的text