Definition at line 58 of file qtableview.h.
#include <qtableview.h>

Public Slots |
|
| void | selectRow (int row) |
| void | selectColumn (int column) |
| void | hideRow (int row) |
| void | hideColumn (int column) |
| void | showRow (int row) |
| void | showColumn (int column) |
| void | resizeRowToContents (int row) |
| void | resizeRowsToContents () |
| void | resizeColumnToContents (int column) |
| void | resizeColumnsToContents () |
| void | sortByColumn (int column) |
| void | setShowGrid (bool show) |
Public Member Functions |
|
| QTableView (QWidget *parent=0) | |
| ~QTableView () | |
| void | setModel (QAbstractItemModel *model) |
| void | setRootIndex (const QModelIndex &index) |
| void | setSelectionModel (QItemSelectionModel *selectionModel) |
| QHeaderView * | horizontalHeader () const |
| QHeaderView * | verticalHeader () const |
| void | setHorizontalHeader (QHeaderView *header) |
| void | setVerticalHeader (QHeaderView *header) |
| int | rowViewportPosition (int row) const |
| int | rowAt (int y) const |
| void | setRowHeight (int row, int height) |
| int | rowHeight (int row) const |
| int | columnViewportPosition (int column) const |
| int | columnAt (int x) const |
| void | setColumnWidth (int column, int width) |
| int | columnWidth (int column) const |
| bool | isRowHidden (int row) const |
| void | setRowHidden (int row, bool hide) |
| bool | isColumnHidden (int column) const |
| void | setColumnHidden (int column, bool hide) |
| void | setSortingEnabled (bool enable) |
| bool | isSortingEnabled () const |
| bool | showGrid () const |
| Qt::PenStyle | gridStyle () const |
| void | setGridStyle (Qt::PenStyle style) |
| void | setWordWrap (bool on) |
| bool | wordWrap () const |
| void | setCornerButtonEnabled (bool enable) |
| bool | isCornerButtonEnabled () const |
| QRect | visualRect (const QModelIndex &index) const |
| void | scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) |
| QModelIndex | indexAt (const QPoint &p) const |
| void | setSpan (int row, int column, int rowSpan, int columnSpan) |
| int | rowSpan (int row, int column) const |
| int | columnSpan (int row, int column) const |
| void | clearSpans () |
| void | sortByColumn (int column, Qt::SortOrder order) |
Protected Slots |
|
| void | rowMoved (int row, int oldIndex, int newIndex) |
| void | columnMoved (int column, int oldIndex, int newIndex) |
| void | rowResized (int row, int oldHeight, int newHeight) |
| void | columnResized (int column, int oldWidth, int newWidth) |
| void | rowCountChanged (int oldCount, int newCount) |
| void | columnCountChanged (int oldCount, int newCount) |
Protected Member Functions |
|
| QTableView (QTableViewPrivate &, QWidget *parent) | |
| void | scrollContentsBy (int dx, int dy) |
| QStyleOptionViewItem | viewOptions () const |
| void | paintEvent (QPaintEvent *e) |
| void | timerEvent (QTimerEvent *event) |
| int | horizontalOffset () const |
| int | verticalOffset () const |
| QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) |
| void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command) |
| QRegion | visualRegionForSelection (const QItemSelection &selection) const |
| QModelIndexList | selectedIndexes () const |
| void | updateGeometries () |
| int | sizeHintForRow (int row) const |
| int | sizeHintForColumn (int column) const |
| void | verticalScrollbarAction (int action) |
| void | horizontalScrollbarAction (int action) |
| bool | isIndexHidden (const QModelIndex &index) const |
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
Properties |
|
| bool | showGrid |
| Qt::PenStyle | gridStyle |
| bool | sortingEnabled |
| bool | wordWrap |
| bool | cornerButtonEnabled |
Friends |
|
| class | QAccessibleItemView |
| QTableView | ( | QWidget * | parent = 0 |
) | [explicit] |
| ~QTableView | ( | ) |
| QTableView | ( | QTableViewPrivate & | , |
| QWidget * | parent | ||
| ) | [protected] |
| void setModel | ( | QAbstractItemModel * | model | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void setRootIndex | ( | const QModelIndex & | index | ) | [virtual] |
Reimplemented from QAbstractItemView.
| void setSelectionModel | ( | QItemSelectionModel * | selectionModel | ) | [virtual] |
Reimplemented from QAbstractItemView.
| QHeaderView* horizontalHeader | ( | ) | const |
| QHeaderView* verticalHeader | ( | ) | const |
| void setHorizontalHeader | ( | QHeaderView * | header | ) |
| void setVerticalHeader | ( | QHeaderView * | header | ) |
| int rowViewportPosition | ( | int | row | ) | const |
| int rowAt | ( | int | y | ) | const |
| void setRowHeight | ( | int | row, |
| int | height | ||
| ) |
| int rowHeight | ( | int | row | ) | const |
| int columnViewportPosition | ( | int | column | ) | const |
| int columnAt | ( | int | x | ) | const |
| void setColumnWidth | ( | int | column, |
| int | width | ||
| ) |
| int columnWidth | ( | int | column | ) | const |
| bool isRowHidden | ( | int | row | ) | const |
| void setRowHidden | ( | int | row, |
| bool | hide | ||
| ) |
| bool isColumnHidden | ( | int | column | ) | const |
| void setColumnHidden | ( | int | column, |
| bool | hide | ||
| ) |
| void setSortingEnabled | ( | bool | enable | ) |
Reimplemented in QTableWidget.
| bool isSortingEnabled | ( | ) | const |
Reimplemented in QTableWidget.
| bool showGrid | ( | ) | const |
| Qt::PenStyle gridStyle | ( | ) | const |
| void setGridStyle | ( | Qt::PenStyle | style | ) |
| void setWordWrap | ( | bool | on | ) |
| bool wordWrap | ( | ) | const |
| void setCornerButtonEnabled | ( | bool | enable | ) |
| bool isCornerButtonEnabled | ( | ) | const |
| QRect visualRect | ( | const QModelIndex & | index | ) | const [virtual] |
Implements QAbstractItemView.
| void scrollTo | ( | const QModelIndex & | index, |
| ScrollHint | hint =
EnsureVisible |
||
| ) | [virtual] |
Implements QAbstractItemView.
| QModelIndex indexAt | ( | const QPoint & | p | ) | const [virtual] |
Implements QAbstractItemView.
| void setSpan | ( | int | row, |
| int | column, | ||
| int | rowSpan, | ||
| int | columnSpan | ||
| ) |
| int rowSpan | ( | int | row, |
| int | column | ||
| ) | const |
| int columnSpan | ( | int | row, |
| int | column | ||
| ) | const |
| void clearSpans | ( | ) |
| void sortByColumn | ( | int | column, |
| Qt::SortOrder | order | ||
| ) |
| void selectRow | ( | int | row | ) | [slot] |
| void selectColumn | ( | int | column | ) | [slot] |
| void hideRow | ( | int | row | ) | [slot] |
| void hideColumn | ( | int | column | ) | [slot] |
| void showRow | ( | int | row | ) | [slot] |
| void showColumn | ( | int | column | ) | [slot] |
| void resizeRowToContents | ( | int | row | ) | [slot] |
| void resizeRowsToContents | ( | ) | [slot] |
| void resizeColumnToContents | ( | int | column | ) | [slot] |
| void resizeColumnsToContents | ( | ) | [slot] |
| void sortByColumn | ( | int | column | ) | [slot] |
| void setShowGrid | ( | bool | show | ) | [slot] |
| void rowMoved | ( | int | row, |
| int | oldIndex, | ||
| int | newIndex | ||
| ) | [protected, slot] |
| void columnMoved | ( | int | column, |
| int | oldIndex, | ||
| int | newIndex | ||
| ) | [protected, slot] |
| void rowResized | ( | int | row, |
| int | oldHeight, | ||
| int | newHeight | ||
| ) | [protected, slot] |
| void columnResized | ( | int | column, |
| int | oldWidth, | ||
| int | newWidth | ||
| ) | [protected, slot] |
| void rowCountChanged | ( | int | oldCount, |
| int | newCount | ||
| ) | [protected, slot] |
| void columnCountChanged | ( | int | oldCount, |
| int | newCount | ||
| ) | [protected, slot] |
| void scrollContentsBy | ( | int | dx, |
| int | dy | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractScrollArea.
| QStyleOptionViewItem viewOptions | ( | ) | const [protected, virtual] |
Reimplemented from QAbstractItemView.
| void paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
Reimplemented from QAbstractScrollArea.
| void timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| int horizontalOffset | ( | ) | const [protected, virtual] |
Implements QAbstractItemView.
| int verticalOffset | ( | ) | const [protected, virtual] |
Implements QAbstractItemView.
| QModelIndex moveCursor | ( | CursorAction | cursorAction, |
| Qt::KeyboardModifiers | modifiers | ||
| ) | [protected, virtual] |
Implements QAbstractItemView.
| void setSelection | ( | const QRect & | rect, |
| QItemSelectionModel::SelectionFlags | command | ||
| ) | [protected, virtual] |
Implements QAbstractItemView.
| QRegion visualRegionForSelection | ( | const QItemSelection & | selection | ) | const [protected, virtual] |
Implements QAbstractItemView.
| QModelIndexList selectedIndexes | ( | ) | const [protected, virtual] |
Reimplemented from QAbstractItemView.
| void updateGeometries | ( | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| int sizeHintForRow | ( | int | row | ) | const [protected, virtual] |
Reimplemented from QAbstractItemView.
| int sizeHintForColumn | ( | int | column | ) | const [protected, virtual] |
Reimplemented from QAbstractItemView.
| void verticalScrollbarAction | ( | int | action | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void horizontalScrollbarAction | ( | int | action | ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| bool isIndexHidden | ( | const QModelIndex & | index | ) | const [protected, virtual] |
Implements QAbstractItemView.
| void selectionChanged | ( | const QItemSelection & | selected, |
| const QItemSelection & | deselected | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
| void currentChanged | ( | const QModelIndex & | current, |
| const QModelIndex & | previous | ||
| ) | [protected, virtual] |
Reimplemented from QAbstractItemView.
friend class QAccessibleItemView
[friend] |
Definition at line 178 of file qtableview.h.
bool showGrid [read, write] |
Definition at line 61 of file qtableview.h.
Qt::PenStyle
gridStyle [read, write] |
Definition at line 62 of file qtableview.h.
bool sortingEnabled [read,
write] |
Definition at line 63 of file qtableview.h.
bool wordWrap [read, write] |
Definition at line 64 of file qtableview.h.
bool cornerButtonEnabled [read,
write] |
Definition at line 65 of file qtableview.h.