KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartAbstractAreaWidget.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Chart library.
4**
5** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
11#ifndef KDCHARTABSTRACTAREAWIDGET_H
12#define KDCHARTABSTRACTAREAWIDGET_H
13
14#include <QPaintEvent>
15#include <QPainter>
16#include <QRect>
17#include <QWidget>
18
20
21namespace KDChart {
22
31class KDCHART_EXPORT AbstractAreaWidget : public QWidget, public AbstractAreaBase
32{
33 Q_OBJECT
34
35 Q_DISABLE_COPY(AbstractAreaWidget)
37
38public:
39 explicit AbstractAreaWidget(QWidget *parent = nullptr);
40
48 void paintEvent(QPaintEvent *event) override;
49
56 virtual void paintIntoRect(QPainter &painter, const QRect &rect);
57
69 virtual void paint(QPainter *painter) = 0;
70
75 void paintAll(QPainter &painter);
76
80 virtual void forceRebuild();
81
87 virtual void needSizeHint();
88 virtual void resizeLayout(const QSize &);
89
90Q_SIGNALS:
92
93protected:
94 ~AbstractAreaWidget() override;
95 QRect areaGeometry() const override;
96 void positionHasChanged() override;
97};
98}
99#endif // KDCHARTABSTRACTAREAWIDGET_H
#define KDCHART_DECLARE_PRIVATE_DERIVED_QWIDGET(X)
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background,...
An area in the chart with a background, a frame, etc.
void positionChanged(AbstractAreaWidget *)
virtual void paint(QPainter *painter)=0

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8