7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qabstractitemview.h>
22 Q_PROPERTY(
int autoExpandDelay READ autoExpandDelay WRITE setAutoExpandDelay)
23 Q_PROPERTY(
int indentation READ indentation WRITE setIndentation RESET resetIndentation)
24 Q_PROPERTY(
bool rootIsDecorated READ rootIsDecorated WRITE setRootIsDecorated)
25 Q_PROPERTY(
bool uniformRowHeights READ uniformRowHeights WRITE setUniformRowHeights)
26 Q_PROPERTY(
bool itemsExpandable READ itemsExpandable WRITE setItemsExpandable)
27 Q_PROPERTY(
bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled)
28 Q_PROPERTY(
bool animated READ isAnimated WRITE setAnimated)
29 Q_PROPERTY(
bool allColumnsShowFocus READ allColumnsShowFocus WRITE setAllColumnsShowFocus)
30 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
31 Q_PROPERTY(
bool headerHidden READ isHeaderHidden WRITE setHeaderHidden)
32 Q_PROPERTY(
bool expandsOnDoubleClick READ expandsOnDoubleClick WRITE setExpandsOnDoubleClick)
45 int autoExpandDelay()
const;
46 void setAutoExpandDelay(
int delay);
48 int indentation()
const;
49 void setIndentation(
int i);
50 void resetIndentation();
52 bool rootIsDecorated()
const;
53 void setRootIsDecorated(
bool show);
55 bool uniformRowHeights()
const;
56 void setUniformRowHeights(
bool uniform);
58 bool itemsExpandable()
const;
59 void setItemsExpandable(
bool enable);
61 bool expandsOnDoubleClick()
const;
62 void setExpandsOnDoubleClick(
bool enable);
64 int columnViewportPosition(
int column)
const;
65 int columnWidth(
int column)
const;
67 int columnAt(
int x)
const;
69 bool isColumnHidden(
int column)
const;
72 bool isHeaderHidden()
const;
73 void setHeaderHidden(
bool hide);
84 void setSortingEnabled(
bool enable);
85 bool isSortingEnabled()
const;
87 void setAnimated(
bool enable);
88 bool isAnimated()
const;
90 void setAllColumnsShowFocus(
bool enable);
91 bool allColumnsShowFocus()
const;
93 void setWordWrap(
bool on);
94 bool wordWrap()
const;
96 void setTreePosition(
int logicalIndex);
97 int treePosition()
const;
108 void reset()
override;
119 void hideColumn(
int column);
120 void showColumn(
int column);
123 void resizeColumnToContents(
int column);
128 void expandToDepth(
int depth);
131 void columnResized(
int column,
int oldSize,
int newSize);
132 void columnCountChanged(
int oldCount,
int newCount);
140 void scrollContentsBy(
int dx,
int dy)
override;
158 const QStyleOptionViewItem &options,
169#if QT_CONFIG(draganddrop)
170 void dragMoveEvent(QDragMoveEvent *
event)
override;
190 friend class ::tst_QTreeView;
191 friend class QAccessibleTable;
192 friend class QAccessibleTree;
193 friend class QAccessibleTableCell;
198#if QT_CONFIG(animation)
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 selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
This slot is called when the selection is changed.
virtual void reset()
Reset the internal state of the view.
void mouseReleaseEvent(QMouseEvent *event) override
This function is called with the given event when a mouse button is released, after a mouse press eve...
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles=QList< int >())
This slot is called when items with the given roles are changed in the model.
bool viewportEvent(QEvent *event) override
This function is used to handle tool tips, and What's This? mode, if the given event is a QEvent::Too...
virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
This slot is called when rows are about to be removed.
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 doItemsLayout()
void keyPressEvent(QKeyEvent *event) override
This function is called with the given event when a key event is sent to the widget.
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 void keyboardSearch(const QString &search)
Moves to and selects the item best matching the string search.
void mousePressEvent(QMouseEvent *event) override
This function is called with the given event when a mouse button is pressed while the cursor is insid...
virtual void rowsInserted(const QModelIndex &parent, int start, int end)
This slot is called when rows are inserted.
virtual QModelIndexList selectedIndexes() const
This convenience function returns a list of all selected and non-hidden item indexes in the view.
virtual void selectAll()
Selects all items 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.
void mouseMoveEvent(QMouseEvent *event) override
This function is called with the given event when a mouse move event is sent to the widget.
virtual QModelIndex indexAt(const QPoint &point) const =0
Returns the model index of the item at the viewport coordinates point.
void mouseDoubleClickEvent(QMouseEvent *event) override
This function is called with the given event when a mouse button is double clicked inside the widget.
virtual void verticalScrollbarValueChanged(int value)
virtual void updateGeometries()
QSize viewportSizeHint() const override
virtual void horizontalScrollbarAction(int action)
The QKeyEvent class describes a key event.
The QPaintEvent class contains event parameters for paint events.
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTreeView class provides a default model/view implementation of a tree view.
void collapsed(const QModelIndex &index)
This signal is emitted when the item specified by index is collapsed.
void expanded(const QModelIndex &index)
This signal is emitted when the item specified by index is expanded.
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint GLint GLint GLint GLint x
[0]
GLint GLenum GLsizei GLsizei GLsizei depth
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLenum GLenum GLsizei void GLsizei void void * span
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]
textPart setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\""))
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent