Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickheaderviewdelegate_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQUICKHEADERVIEWDELEGATE_P_H
6#define QQUICKHEADERVIEWDELEGATE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuickTemplates2/private/qquicktableviewdelegate_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QQuickHeaderViewBase;
25
26class Q_QUICKTEMPLATES2_EXPORT QQuickHeaderViewDelegate : public QQuickTableViewDelegate
27{
28 Q_OBJECT
29
30 Q_PROPERTY(Qt::Orientation orientation READ orientation NOTIFY orientationChanged FINAL)
31 // Required properties
32 Q_PROPERTY(QQuickHeaderViewBase *headerView READ headerView WRITE setHeaderView NOTIFY headerViewChanged REQUIRED FINAL)
33 Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged REQUIRED FINAL)
34
35 QML_NAMED_ELEMENT(HeaderViewDelegate)
36 QML_ADDED_IN_VERSION(6, 10)
37
38public:
39 QQuickHeaderViewDelegate(QQuickItem *parent = nullptr);
40
41 QQuickHeaderViewBase *headerView() const;
42 void setHeaderView(QQuickHeaderViewBase *headerView);
43
44 Qt::Orientation orientation() const;
45
46 QVariant model() const;
47 void setModel(const QVariant &model);
48
49Q_SIGNALS:
50 void headerViewChanged();
51 void modelChanged();
52 void orientationChanged();
53
54private:
55 Q_DISABLE_COPY(QQuickHeaderViewDelegate)
56 Q_DECLARE_PRIVATE(QQuickHeaderViewDelegate)
57};
58
59QT_END_NAMESPACE
60
61#endif // QQUICKHEADERVIEWDELEGATE_P_H
\qmltype HorizontalHeaderViewDelegate \inherits TableViewDelegate \inqmlmodule QtQuick....