7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qabstractitemview.h>
20 Q_PROPERTY(
bool showGrid READ showGrid WRITE setShowGrid)
22 Q_PROPERTY(
bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled)
23 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
24#if QT_CONFIG(abstractbutton)
25 Q_PROPERTY(
bool cornerButtonEnabled READ isCornerButtonEnabled WRITE setCornerButtonEnabled)
42 int rowViewportPosition(
int row)
const;
43 int rowAt(
int y)
const;
46 int rowHeight(
int row)
const;
48 int columnViewportPosition(
int column)
const;
49 int columnAt(
int x)
const;
52 int columnWidth(
int column)
const;
54 bool isRowHidden(
int row)
const;
55 void setRowHidden(
int row,
bool hide);
57 bool isColumnHidden(
int column)
const;
60 void setSortingEnabled(
bool enable);
61 bool isSortingEnabled()
const;
63 bool showGrid()
const;
68 void setWordWrap(
bool on);
69 bool wordWrap()
const;
71#if QT_CONFIG(abstractbutton)
72 void setCornerButtonEnabled(
bool enable);
73 bool isCornerButtonEnabled()
const;
80 void setSpan(
int row,
int column,
int rowSpan,
int columnSpan);
82 int columnSpan(
int row,
int column)
const;
87 void selectRow(
int row);
88 void selectColumn(
int column);
89 void hideRow(
int row);
90 void hideColumn(
int column);
91 void showRow(
int row);
92 void showColumn(
int column);
93 void resizeRowToContents(
int row);
94 void resizeRowsToContents();
95 void resizeColumnToContents(
int column);
96 void resizeColumnsToContents();
98 void setShowGrid(
bool show);
101 void rowMoved(
int row,
int oldIndex,
int newIndex);
102 void columnMoved(
int column,
int oldIndex,
int newIndex);
103 void rowResized(
int row,
int oldHeight,
int newHeight);
104 void columnResized(
int column,
int oldWidth,
int newWidth);
105 void rowCountChanged(
int oldCount,
int newCount);
106 void columnCountChanged(
int oldCount,
int newCount);
110 void scrollContentsBy(
int dx,
int dy)
override;
143 friend class QAccessibleItemView;
The QAbstractItemView class provides the basic functionality for item view classes.
virtual QRect visualRect(const QModelIndex &index) const =0
Returns the rectangle on the viewport occupied by the item at index.
virtual QRegion visualRegionForSelection(const QItemSelection &selection) const =0
Returns the region from the viewport of the items in the given selection.
virtual void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command)=0
Applies the selection flags to the items in or touched by the rectangle, rect.
virtual int verticalOffset() const =0
Returns the vertical offset of the view.
virtual void setSelectionModel(QItemSelectionModel *selectionModel)
Sets the current selection model to the given selectionModel.
void timerEvent(QTimerEvent *event) override
This function is called with the given event when a timer event is sent to the widget.
virtual void verticalScrollbarAction(int action)
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
This slot is called when the selection is changed.
virtual void setModel(QAbstractItemModel *model)
Sets the model for the view to present.
virtual void setRootIndex(const QModelIndex &index)
Sets the root item to the item at the given index.
virtual void initViewItemOption(QStyleOptionViewItem *option) const
virtual void doItemsLayout()
virtual void scrollTo(const QModelIndex &index, ScrollHint hint=EnsureVisible)=0
Scrolls the view if necessary to ensure that the item at index is visible.
virtual int horizontalOffset() const =0
Returns the horizontal offset of the view.
CursorAction
This enum describes the different ways to navigate between items,.
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)=0
Returns a QModelIndex object pointing to the next object in the view, based on the given cursorAction...
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
This slot is called when a new item becomes the current item.
ScrollHint
\value EnsureVisible Scroll to ensure that the item is visible.
virtual QModelIndexList selectedIndexes() const
This convenience function returns a list of all selected and non-hidden item indexes in the view.
virtual bool isIndexHidden(const QModelIndex &index) const =0
Returns true if the item referred to by the given index is hidden in the view, otherwise returns fals...
virtual int sizeHintForColumn(int column) const
Returns the width size hint for the specified column or -1 if there is no model.
virtual QModelIndex indexAt(const QPoint &point) const =0
Returns the model index of the item at the viewport coordinates point.
virtual void updateGeometries()
QSize viewportSizeHint() const override
virtual void horizontalScrollbarAction(int action)
virtual int sizeHintForRow(int row) const
Returns the height size hint for the specified row or -1 if there is no model.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
The QTableView class provides a default model/view implementation of a table view.
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
static QString header(const QString &name)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLfixed GLfixed GLint GLint order
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_REQUIRE_CONFIG(feature)
QSqlQueryModel * model
[16]
QItemSelection * selection
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent