<class name="QTableView" doc="/** <p>The <a href="QTableView.html#QTableView(com.trolltech.qt.gui.QWidget)"><tt>QTableView</tt></a> class provides a default model/view implementation of a table view.</p> <p>A <a href="QTableView.html#QTableView(com.trolltech.qt.gui.QWidget)"><tt>QTableView</tt></a> implements a table view that displays items from a model. This class is used to provide standard tables that were previously provided by the <a href="%2E%2E/porting4.html#qtable"><tt>QTable</tt></a> class, but using the more flexible approach provided by Qt's model/view architecture.</p> <p>The <a href="QTableView.html#QTableView(com.trolltech.qt.gui.QWidget)"><tt>QTableView</tt></a> class is one of the <a href="%2E%2E/qt4-interview.html#model-view-classes">Model/View Classes</tt></a> and is part of Qt's <a href="%2E%2E/model-view-programming.html">model/view framework</tt></a>.</p> <p>You can navigate the cells in the table by clicking on a cell with the mouse, or by using the arrow keys. Because <a href="QTableView.html#QTableView(com.trolltech.qt.gui.QWidget)"><tt>QTableView</tt></a> enables tabKeyNavigation by default, you can also hit Tab and Backtab to move from cell to cell.</p> <p><a href="QTableView.html#QTableView(com.trolltech.qt.gui.QWidget)"><tt>QTableView</tt></a> implements the interfaces defined by the <a href="QAbstractItemView.html#QAbstractItemView(com.trolltech.qt.gui.QWidget)"><tt>QAbstractItemView</tt></a> class to allow it to display data provided by models derived from the <a href="%2E%2E/core/QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a> class.</p> <p>The table has a vertical header that can be obtained using the <a href="QTableView.html#verticalHeader()"><tt>verticalHeader</tt></a> function, and a horizontal header that is available through the <a href="QTableView.html#horizontalHeader()"><tt>horizontalHeader</tt></a> function. The height of each row in the table can be found by using <a href="QTableView.html#rowHeight(int)"><tt>rowHeight</tt></a>; similarly, the width of columns can be found using <a href="QTableView.html#columnWidth(int)"><tt>columnWidth</tt></a>. They are both just QWidgets so you can hide either of them using their <a href="QWidget.html#hide()"><tt>hide</tt></a> functions.</p> <p>Rows and columns can be hidden and shown with <a href="QTableView.html#hideRow(int)"><tt>hideRow</tt></a>, <a href="QTableView.html#hideColumn(int)"><tt>hideColumn</tt></a>, <a href="QTableView.html#showRow(int)"><tt>showRow</tt></a>, and <a href="QTableView.html#showColumn(int)"><tt>showColumn</tt></a>. They can be selected with <a href="QTableView.html#selectRow(int)"><tt>selectRow</tt></a> and <a href="QTableView.html#selectColumn(int)"><tt>selectColumn</tt></a>. The table will show a grid depending on the <a href="QTableView.html#showGrid()"><tt>showGrid</tt></a> property.</p> <p>The items shown in a table view, like those in the other item views, are rendered and edited using standard <a href="QItemDelegate.html">delegates</tt></a>. However, for some tasks it is sometimes useful to be able to insert widgets in a table instead. Widgets are set for particular indexes with the setIndexWidget() function, and later retrieved with indexWidget().</p> <p>For some specialized forms of tables it is useful to be able to convert between row and column indexes and widget coordinates. The <a href="QTableView.html#rowAt(int)"><tt>rowAt</tt></a> function provides the y-coordinate within the view of the specified row; the row index can be used to obtain a corresponding y-coordinate with <a href="QTableView.html#rowViewportPosition(int)"><tt>rowViewportPosition</tt></a>. The <a href="QTableView.html#columnAt(int)"><tt>columnAt</tt></a> and <a href="QTableView.html#columnViewportPosition(int)"><tt>columnViewportPosition</tt></a> functions provide the equivalent conversion operations between x-coordinates and column indexes.</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/windowsxp-tableview.png" alt="Screenshot of a Windows XP style table view" /></td><td><img src="%2E%2E/images/macintosh-tableview.png" alt="Screenshot of a Macintosh style table view" /></td><td><img src="%2E%2E/images/plastique-tableview.png" alt="Screenshot of a Plastique style table view" /></td></tr> <tr valign="top" class="even"><td>A <a href="%2E%2E/gallery-windowsxp.html">Windows XP style</tt></a> table view.</td><td>A <a href="%2E%2E/gallery-macintosh.html">Macintosh style</tt></a> table view.</td><td>A <a href="%2E%2E/gallery-plastique.html">Plastique style</tt></a> table view.</td></tr> </table></p> @see <a href="QTableWidget.html"><tt>QTableWidget</tt></a> @see <a href="%2E%2E/model-view-view.html">View Classes</tt></a> @see <a href="%2E%2E/core/QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a> @see <a href="QAbstractItemView.html#QAbstractItemView(com.trolltech.qt.gui.QWidget)"><tt>QAbstractItemView</tt></a> @see Chart Example</tt> @see Pixelator Example</tt> @see Table Model Example</tt> */"> <signal name="protected final void activated(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when the item specified by <tt>index</tt> is activated by the user. How to activate items depends on the platform; e.g&#x2e;, by single- or double-clicking the item, or by pressing the Return or Enter key when the item is current.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTableView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QTableView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QTableView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a>, <a href="QTableView.html#pressed(com.trolltech.qt.core.QModelIndex)"><tt>pressed</tt></a></dd> </dl> */"/> <signal name="protected final void clicked(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when a mouse button is clicked. The item the mouse was clicked on is specified by <tt>index</tt>. The signal is only emitted when the index is valid.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTableView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a>, <a href="QTableView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QTableView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a>, <a href="QTableView.html#pressed(com.trolltech.qt.core.QModelIndex)"><tt>pressed</tt></a></dd> </dl> */"/> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <signal name="protected final void doubleClicked(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by <tt>index</tt>. The signal is only emitted when the index is valid.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTableView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QTableView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a></dd> </dl> */"/> <signal name="protected final void entered(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when the mouse cursor enters the item specified by <tt>index</tt>. Mouse tracking needs to be enabled for this feature to work.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTableView.html#viewportEntered()"><tt>viewportEntered</tt></a>, <a href="QTableView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a>, <a href="QTableView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QTableView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QTableView.html#pressed(com.trolltech.qt.core.QModelIndex)"><tt>pressed</tt></a></dd> </dl> */"/> <signal name="protected final void pressed(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when a mouse button is pressed. The item the mouse was pressed on is specified by <tt>index</tt>. The signal is only emitted when the index is valid.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTableView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a>, <a href="QTableView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QTableView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QTableView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a></dd> </dl> */"/> <signal name="protected final void viewportEntered()" doc="/** <p>This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTableView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a></dd> </dl> */"/> <method name="public QTableView(com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs a table view with a <tt>parent</tt> to represent the data.</p> @see <a href="%2E%2E/core/QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a> */"/> <method name="public QTableView()" doc="/** <p>Equivalent to <a href="QTableView.html#QTableView(com.trolltech.qt.gui.QWidget)"><tt>QTableView</tt></a>(0). */"/> <method name="public final int columnAt(int x)" doc="/** <p>Returns the column in which the given x-coordinate, <tt>x</tt>, in contents coordinates is located.</p> @see <a href="QTableView.html#rowAt(int)"><tt>rowAt</tt></a> */"/> <method name="protected final void columnCountChanged(int oldCount, int newCount)" doc="/** <p>This slot is called whenever columns are added or deleted. The previous number of columns is specified by <tt>oldCount</tt>, and the new number of columns is specified by <tt>newCount</tt>.</p> */"/> <method name="protected final void columnMoved(int column, int oldIndex, int newIndex)" doc="/** <p>This slot is called to change the index of the given <tt>column</tt> in the table view. The old index is specified by <tt>oldIndex</tt>, and the new index by <tt>newIndex</tt>.</p> @see <a href="QTableView.html#rowMoved(int, int, int)"><tt>rowMoved</tt></a> */"/> <method name="protected final void columnResized(int column, int oldWidth, int newWidth)" doc="/** <p>This slot is called to change the width of the given <tt>column</tt>. The old width is specified by <tt>oldWidth</tt>, and the new width by <tt>newWidth</tt>.</p> @see <a href="QTableView.html#rowResized(int, int, int)"><tt>rowResized</tt></a> */"/> <method name="public final int columnSpan(int row, int column)" doc="/** <p>Returns the column span of the table element at (<tt>row</tt>, <tt>column</tt>). The default is 1.</p> @see <a href="QTableView.html#setSpan(int, int, int, int)"><tt>setSpan</tt></a> @see <a href="QTableView.html#rowSpan(int, int)"><tt>rowSpan</tt></a> */"/> <method name="public final int columnViewportPosition(int column)" doc="/** <p>Returns the x-coordinate in contents coordinates of the given <tt>column</tt>.</p> */"/> <method name="public final int columnWidth(int column)" doc="/** <p>Returns the width of the given <tt>column</tt>.</p> @see <a href="QTableView.html#setColumnWidth(int, int)"><tt>setColumnWidth</tt></a> @see <a href="QTableView.html#resizeColumnToContents(int)"><tt>resizeColumnToContents</tt></a> @see <a href="QTableView.html#rowHeight(int)"><tt>rowHeight</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.PenStyle gridStyle()" doc="/** <p>Returns the pen style used to draw the grid..</p> <p>This property holds the style used when drawing the grid (see <a href="QTableView.html#showGrid()"><tt>showGrid</tt></a>).</p> @see <a href="QTableView.html#setGridStyle(com.trolltech.qt.core.Qt.PenStyle)"><tt>setGridStyle</tt></a> */"/> <method name="public final void hideColumn(int column)" doc="/** <p>Hide the given <tt>column</tt>.</p> @see <a href="QTableView.html#showColumn(int)"><tt>showColumn</tt></a> @see <a href="QTableView.html#hideRow(int)"><tt>hideRow</tt></a> */"/> <method name="public final void hideRow(int row)" doc="/** <p>Hide the given <tt>row</tt>.</p> @see <a href="QTableView.html#showRow(int)"><tt>showRow</tt></a> @see <a href="QTableView.html#hideColumn(int)"><tt>hideColumn</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QHeaderView horizontalHeader()" doc="/** <p>Returns the table view's horizontal header.</p> @see <a href="QTableView.html#setHorizontalHeader(com.trolltech.qt.gui.QHeaderView)"><tt>setHorizontalHeader</tt></a> @see <a href="QTableView.html#verticalHeader()"><tt>verticalHeader</tt></a> @see <tt>QAbstractItemModel::headerData</tt> */"/> <method name="public final boolean isColumnHidden(int column)" doc="/** <p>Returns true if the given <tt>column</tt> is hidden; otherwise returns false.</p> @see <a href="QTableView.html#isRowHidden(int)"><tt>isRowHidden</tt></a> */"/> <method name="public final boolean isCornerButtonEnabled()" doc="/** <p>Returns whether the button in the top-left corner is enabled.</p> <p>If this property is true then button in the top-left corner of the table view is enabled. Clicking on this button will select all the cells in the table view.</p> <p>This property is true by default.</p> */"/> <method name="public final boolean isRowHidden(int row)" doc="/** <p>Returns true if the given <tt>row</tt> is hidden; otherwise returns false.</p> @see <a href="QTableView.html#isColumnHidden(int)"><tt>isColumnHidden</tt></a> */"/> <method name="public final boolean isSortingEnabled()" doc="/** <p>Returns whether sorting is enabled.</p> <p>If this property is true, sorting is enabled for the table; if the property is false, sorting is not enabled. The default value is false.</p> @see <a href="QTableView.html#sortByColumn(int, com.trolltech.qt.core.Qt.SortOrder)"><tt>sortByColumn</tt></a> */"/> <method name="public final void resizeColumnToContents(int column)" doc="/** <p>Resizes the given <tt>column</tt> based on the size hints of the delegate used to render each item in the column.</p> */"/> <method name="public final void resizeColumnsToContents()" doc="/** <p>Resizes all columns based on the size hints of the delegate used to render each item in the columns.</p> */"/> <method name="public final void resizeRowToContents(int row)" doc="/** <p>Resizes the given <tt>row</tt> based on the size hints of the delegate used to render each item in the row.</p> */"/> <method name="public final void resizeRowsToContents()" doc="/** <p>Resizes all rows based on the size hints of the delegate used to render each item in the rows.</p> */"/> <method name="public final int rowAt(int y)" doc="/** <p>Returns the row in which the given y-coordinate, <tt>y</tt>, in contents coordinates is located.</p> @see <a href="QTableView.html#columnAt(int)"><tt>columnAt</tt></a> */"/> <method name="protected final void rowCountChanged(int oldCount, int newCount)" doc="/** <p>This slot is called whenever rows are added or deleted. The previous number of rows is specified by <tt>oldCount</tt>, and the new number of rows is specified by <tt>newCount</tt>.</p> */"/> <method name="public final int rowHeight(int row)" doc="/** <p>Returns the height of the given <tt>row</tt>.</p> @see <a href="QTableView.html#setRowHeight(int, int)"><tt>setRowHeight</tt></a> @see <a href="QTableView.html#resizeRowToContents(int)"><tt>resizeRowToContents</tt></a> @see <a href="QTableView.html#columnWidth(int)"><tt>columnWidth</tt></a> */"/> <method name="protected final void rowMoved(int row, int oldIndex, int newIndex)" doc="/** <p>This slot is called to change the index of the given <tt>row</tt> in the table view. The old index is specified by <tt>oldIndex</tt>, and the new index by <tt>newIndex</tt>.</p> @see <a href="QTableView.html#columnMoved(int, int, int)"><tt>columnMoved</tt></a> */"/> <method name="protected final void rowResized(int row, int oldHeight, int newHeight)" doc="/** <p>This slot is called to change the height of the given <tt>row</tt>. The old height is specified by <tt>oldHeight</tt>, and the new height by <tt>newHeight</tt>.</p> @see <a href="QTableView.html#columnResized(int, int, int)"><tt>columnResized</tt></a> */"/> <method name="public final int rowSpan(int row, int column)" doc="/** <p>Returns the row span of the table element at (<tt>row</tt>, <tt>column</tt>). The default is 1.</p> @see <a href="QTableView.html#setSpan(int, int, int, int)"><tt>setSpan</tt></a> @see <a href="QTableView.html#columnSpan(int, int)"><tt>columnSpan</tt></a> */"/> <method name="public final int rowViewportPosition(int row)" doc="/** <p>Returns the y-coordinate in contents coordinates of the given <tt>row</tt>.</p> */"/> <method name="public final void selectColumn(int column)" doc="/** <p>Selects the given <tt>column</tt> in the table view if the current <a href="QAbstractItemView.html#SelectionMode-enum"><tt>SelectionMode</tt></a> and <a href="QAbstractItemView.html#SelectionBehavior-enum"><tt>SelectionBehavior</tt></a> allows columns to be selected.</p> @see <a href="QTableView.html#selectRow(int)"><tt>selectRow</tt></a> */"/> <method name="public final void selectRow(int row)" doc="/** <p>Selects the given <tt>row</tt> in the table view if the current <a href="QAbstractItemView.html#SelectionMode-enum"><tt>SelectionMode</tt></a> and <a href="QAbstractItemView.html#SelectionBehavior-enum"><tt>SelectionBehavior</tt></a> allows rows to be selected.</p> @see <a href="QTableView.html#selectColumn(int)"><tt>selectColumn</tt></a> */"/> <method name="public final void setColumnHidden(int column, boolean hide)" doc="/** <p>If <tt>hide</tt> is true the given <tt>column</tt> will be hidden; otherwise it will be shown.</p> @see <a href="QTableView.html#isColumnHidden(int)"><tt>isColumnHidden</tt></a> @see <a href="QTableView.html#setRowHidden(int, boolean)"><tt>setRowHidden</tt></a> */"/> <method name="public final void setColumnWidth(int column, int width)" doc="/** <p>Sets the width of the given <tt>column</tt> to be <tt>width</tt>.</p> @see <a href="QTableView.html#columnWidth(int)"><tt>columnWidth</tt></a> */"/> <method name="public final void setCornerButtonEnabled(boolean enable)" doc="/** <p>Sets whether the button in the top-left corner is enabled to <tt>enable</tt>.</p> <p>If this property is true then button in the top-left corner of the table view is enabled. Clicking on this button will select all the cells in the table view.</p> <p>This property is true by default.</p> @see <a href="QTableView.html#isCornerButtonEnabled()"><tt>isCornerButtonEnabled</tt></a> */"/> <method name="public final void setGridStyle(com.trolltech.qt.core.Qt.PenStyle style)" doc="/** <p>Sets the pen style used to draw the grid. to <tt>style</tt>.</p> <p>This property holds the style used when drawing the grid (see <a href="QTableView.html#showGrid()"><tt>showGrid</tt></a>).</p> @see <a href="QTableView.html#gridStyle()"><tt>gridStyle</tt></a> */"/> <method name="public final void setHorizontalHeader(com.trolltech.qt.gui.QHeaderView header)" doc="/** <p>Sets the widget to use for the vertical header to <tt>header</tt>.</p> @see <a href="QTableView.html#horizontalHeader()"><tt>horizontalHeader</tt></a> @see <a href="QTableView.html#setVerticalHeader(com.trolltech.qt.gui.QHeaderView)"><tt>setVerticalHeader</tt></a> */"/> <method name="public final void setRowHeight(int row, int height)" doc="/** <p>Sets the height of the given <tt>row</tt> to be <tt>height</tt>.</p> @see <a href="QTableView.html#rowHeight(int)"><tt>rowHeight</tt></a> */"/> <method name="public final void setRowHidden(int row, boolean hide)" doc="/** <p>If <tt>hide</tt> is true <tt>row</tt> will be hidden, otherwise it will be shown.</p> @see <a href="QTableView.html#isRowHidden(int)"><tt>isRowHidden</tt></a> @see <a href="QTableView.html#setColumnHidden(int, boolean)"><tt>setColumnHidden</tt></a> */"/> <method name="public final void setShowGrid(boolean show)" doc="/** <p>Sets whether the grid is shown to <tt>show</tt>.</p> <p>If this property is true a grid is drawn for the table; if the property is false, no grid is drawn. The default value is true.</p> @see <a href="QTableView.html#showGrid()"><tt>showGrid</tt></a> */"/> <method name="public final void setSortingEnabled(boolean enable)" doc="/** <p>Sets whether sorting is enabled to <tt>enable</tt>.</p> <p>If this property is true, sorting is enabled for the table; if the property is false, sorting is not enabled. The default value is false.</p> @see <a href="QTableView.html#isSortingEnabled()"><tt>isSortingEnabled</tt></a> @see <a href="QTableView.html#sortByColumn(int, com.trolltech.qt.core.Qt.SortOrder)"><tt>sortByColumn</tt></a> */"/> <method name="public final void setSpan(int row, int column, int rowSpan, int columnSpan)" doc="/** <p>Sets the span of the table element at (<tt>row</tt>, <tt>column</tt>) to (<tt>rowSpan</tt>, <tt>columnSpan</tt>).</p> @see <a href="QTableView.html#rowSpan(int, int)"><tt>rowSpan</tt></a> @see <a href="QTableView.html#columnSpan(int, int)"><tt>columnSpan</tt></a> */"/> <method name="public final void setVerticalHeader(com.trolltech.qt.gui.QHeaderView header)" doc="/** <p>Sets the widget to use for the horizontal header to <tt>header</tt>.</p> @see <a href="QTableView.html#verticalHeader()"><tt>verticalHeader</tt></a> @see <a href="QTableView.html#setHorizontalHeader(com.trolltech.qt.gui.QHeaderView)"><tt>setHorizontalHeader</tt></a> */"/> <method name="public final void setWordWrap(boolean on)" doc="/** <p>Sets the item text word-wrapping policy to <tt>on</tt>.</p> <p>If this property is true then item text text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is true by default.</p> @see <a href="QTableView.html#wordWrap()"><tt>wordWrap</tt></a> */"/> <method name="public final void showColumn(int column)" doc="/** <p>Show the given <tt>column</tt>.</p> @see <a href="QTableView.html#hideColumn(int)"><tt>hideColumn</tt></a> @see <a href="QTableView.html#showRow(int)"><tt>showRow</tt></a> */"/> <method name="public final boolean showGrid()" doc="/** <p>Returns whether the grid is shown.</p> <p>If this property is true a grid is drawn for the table; if the property is false, no grid is drawn. The default value is true.</p> @see <a href="QTableView.html#setShowGrid(boolean)"><tt>setShowGrid</tt></a> */"/> <method name="public final void showRow(int row)" doc="/** <p>Show the given <tt>row</tt>.</p> @see <a href="QTableView.html#hideRow(int)"><tt>hideRow</tt></a> @see <a href="QTableView.html#showColumn(int)"><tt>showColumn</tt></a> */"/> <method name="public final void sortByColumn(int column, com.trolltech.qt.core.Qt.SortOrder order)" doc="/** <p>Sorts the model by the values in the given <tt>column</tt> in the given <tt>order</tt>.</p> @see <tt>sortingEnabled</tt> */"/> <method name="public final com.trolltech.qt.gui.QHeaderView verticalHeader()" doc="/** <p>Returns the table view's vertical header.</p> @see <a href="QTableView.html#setVerticalHeader(com.trolltech.qt.gui.QHeaderView)"><tt>setVerticalHeader</tt></a> @see <a href="QTableView.html#horizontalHeader()"><tt>horizontalHeader</tt></a> @see <tt>QAbstractItemModel::headerData</tt> */"/> <method name="public final boolean wordWrap()" doc="/** <p>Returns the item text word-wrapping policy.</p> <p>If this property is true then item text text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is true by default.</p> @see <a href="QTableView.html#setWordWrap(boolean)"><tt>setWordWrap</tt></a> */"/> <method name="protected void currentChanged(com.trolltech.qt.core.QModelIndex current, com.trolltech.qt.core.QModelIndex previous)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected int horizontalOffset()" doc="/** <p>Returns the horizontal offset of the items in the table view.</p> <p>Note that the table view uses the horizontal header section positions to determine the positions of columns in the view.</p> @see <a href="QTableView.html#verticalOffset()"><tt>verticalOffset</tt></a> */"/> <method name="protected void horizontalScrollbarAction(int action)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QModelIndex indexAt(com.trolltech.qt.core.QPoint p)" doc="/** <p>Returns the index position of the model item corresponding to the table item at position <tt>p</tt> in contents coordinates.</p> */"/> <method name="protected boolean isIndexHidden(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected com.trolltech.qt.core.QModelIndex moveCursor(com.trolltech.qt.gui.QAbstractItemView.CursorAction cursorAction, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/** <p>Moves the cursor in accordance with the given <tt>cursorAction</tt>, using the information provided by the <tt>modifiers</tt>.</p> @see <tt>QAbstractItemView::CursorAction</tt> */"/> <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent e)" doc="/** <p>Paints the table on receipt of the given paint event <tt>e</tt>.</p> */"/> <method name="protected void scrollContentsBy(int dx, int dy)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void scrollTo(com.trolltech.qt.core.QModelIndex index, com.trolltech.qt.gui.QAbstractItemView.ScrollHint hint)" doc="/** <p>Scrolls the view if necessary to ensure that the item at <tt>index</tt> is visible. The view will try to position the item according to the given <tt>hint</tt>.</p> <p>In the base class this is a pure virtual function.</p> */"/> <method name="public final void scrollTo(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>Equivalent to <a href="QTableView.html#scrollTo(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.gui.QAbstractItemView.ScrollHint)"><tt>scrollTo</tt></a>(<tt>index</tt>, EnsureVisible). */"/> <method name="protected java.util.List<com.trolltech.qt.core.QModelIndex> selectedIndexes()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void selectionChanged(com.trolltech.qt.gui.QItemSelection selected, com.trolltech.qt.gui.QItemSelection deselected)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void setModel(com.trolltech.qt.core.QAbstractItemModel model)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void setRootIndex(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void setSelection(com.trolltech.qt.core.QRect rect, com.trolltech.qt.gui.QItemSelectionModel.SelectionFlags command)" doc="/** <p>Selects the items within the given <tt>rect</tt> and in accordance with the specified selection <tt>command</tt>.</p> */"/> <method name="public void setSelectionModel(com.trolltech.qt.gui.QItemSelectionModel selectionModel)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public int sizeHintForColumn(int column)" doc="/** <p>Returns the size hint for the given <tt>column</tt>'s width or -1 if there is no model.</p> <p>If you need to set the width of a given column to a fixed value, call QHeaderView::resizeSection() on the table's horizontal header.</p> <p>If you reimplement this function in a subclass, note that the value you return is only used when <a href="QTableView.html#resizeColumnToContents(int)"><tt>resizeColumnToContents</tt></a> is called. In that case, if a larger column width is required by either the horizontal header or the item delegate, that width will be used instead.</p> @see <tt>QWidget::sizeHint</tt> @see <a href="QTableView.html#horizontalHeader()"><tt>horizontalHeader</tt></a> */"/> <method name="public int sizeHintForRow(int row)" doc="/** <p>Returns the size hint for the given <tt>row</tt>'s height or -1 if there is no model.</p> <p>If you need to set the height of a given row to a fixed value, call QHeaderView::resizeSection() on the table's vertical header.</p> <p>If you reimplement this function in a subclass, note that the value you return is only used when <a href="QTableView.html#resizeRowToContents(int)"><tt>resizeRowToContents</tt></a> is called. In that case, if a larger row height is required by either the vertical header or the item delegate, that width will be used instead.</p> @see <tt>QWidget::sizeHint</tt> @see <a href="QTableView.html#verticalHeader()"><tt>verticalHeader</tt></a> */"/> <method name="protected void timerEvent(com.trolltech.qt.core.QTimerEvent event)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void updateGeometries()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected int verticalOffset()" doc="/** <p>Returns the vertical offset of the items in the table view.</p> <p>Note that the table view uses the vertical header section positions to determine the positions of rows in the view.</p> @see <a href="QTableView.html#horizontalOffset()"><tt>horizontalOffset</tt></a> */"/> <method name="protected void verticalScrollbarAction(int action)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected com.trolltech.qt.gui.QStyleOptionViewItem viewOptions()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QRect visualRect(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected com.trolltech.qt.gui.QRegion visualRegionForSelection(com.trolltech.qt.gui.QItemSelection selection)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> </class>