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);
78 bool isFirstColumnSpanned(
int row, const
QModelIndex &parent) const;
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;
99 void keyboardSearch(const
QString &search) override;
107 void doItemsLayout() override;
108 void reset() override;
111 const
QList<
int> &roles =
QList<
int>()) 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);
136 void verticalScrollbarValueChanged(
int value) override;
140 void scrollContentsBy(
int dx,
int dy) override;
145 int horizontalOffset() const override;
146 int verticalOffset() const override;
158 const QStyleOptionViewItem &options,
169#if QT_CONFIG(draganddrop)
170 void dragMoveEvent(QDragMoveEvent *
event)
override;
174 void updateGeometries()
override;
176 QSize viewportSizeHint()
const override;
178 int sizeHintForColumn(
int column)
const override;
182 void horizontalScrollbarAction(
int action)
override;
190 friend class ::tst_QTreeView;
191 friend class QAccessibleTable;
192 friend class QAccessibleTree;
193 friend class QAccessibleTableCell;
The QAbstractItemView class provides the basic functionality for item view classes.
CursorAction
This enum describes the different ways to navigate between items,.
ScrollHint
\value EnsureVisible Scroll to ensure that the item is visible.
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.
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
static jboolean setSelection(JNIEnv *, jobject, jint start, jint end)
static jboolean selectAll(JNIEnv *, jobject)
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static void visualRect(QRectF *geom, Qt::LayoutDirection dir, const QRectF &contentsRect)
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)
view setModel(model)
[17] //! [18]
QSqlQueryModel * model
[16]
QItemSelection * selection
[0]
textPart setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\""))