/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Charts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QABSTRACTAXIS_H
#define QABSTRACTAXIS_H
#include <QtCharts/QChartGlobal>
#include <QtGui/QPen>
#include <QtGui/QFont>
#include <QtCore/QVariant>
QT_CHARTS_BEGIN_NAMESPACE
class QAbstractAxisPrivate;
class Q_CHARTS_EXPORT QAbstractAxis : public QObject
{
Q_OBJECT
//visibility
Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged)
//arrow
Q_PROPERTY(bool lineVisible READ isLineVisible WRITE setLineVisible NOTIFY lineVisibleChanged)
Q_PROPERTY(QPen linePen READ linePen WRITE setLinePen NOTIFY linePenChanged)
Q_PROPERTY(QColor color READ linePenColor WRITE setLinePenColor NOTIFY colorChanged)
//labels
Q_PROPERTY(bool labelsVisible READ labelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
Q_PROPERTY(QBrush labelsBrush READ labelsBrush WRITE setLabelsBrush NOTIFY labelsBrushChanged)
Q_PROPERTY(int labelsAngle READ labelsAngle WRITE setLabelsAngle NOTIFY labelsAngleChanged)
Q_PROPERTY(QFont labelsFont READ labelsFont WRITE setLabelsFont NOTIFY labelsFontChanged)
Q_PROPERTY(QColor labelsColor READ labelsColor WRITE setLabelsColor NOTIFY labelsColorChanged)
//grid
Q_PROPERTY(bool gridVisible READ isGridLineVisible WRITE setGridLineVisible NOTIFY gridVisibleChanged)
Q_PROPERTY(QPen gridLinePen READ gridLinePen WRITE setGridLinePen NOTIFY gridLinePenChanged)
Q_PROPERTY(bool minorGridVisible READ isMinorGridLineVisible WRITE setMinorGridLineVisible NOTIFY minorGridVisibleChanged)
Q_PROPERTY(QPen minorGridLinePen READ minorGridLinePen WRITE setMinorGridLinePen NOTIFY minorGridLinePenChanged)
Q_PROPERTY(QColor gridLineColor READ gridLineColor WRITE setGridLineColor NOTIFY gridLineColorChanged)
Q_PROPERTY(QColor minorGridLineColor READ minorGridLineColor WRITE setMinorGridLineColor NOTIFY minorGridLineColorChanged)
//shades
Q_PROPERTY(bool shadesVisible READ shadesVisible WRITE setShadesVisible NOTIFY shadesVisibleChanged)
Q_PROPERTY(QColor shadesColor READ shadesColor WRITE setShadesColor NOTIFY shadesColorChanged)
Q_PROPERTY(QColor shadesBorderColor READ shadesBorderColor WRITE setShadesBorderColor NOTIFY shadesBorderColorChanged)
Q_PROPERTY(QPen shadesPen READ shadesPen WRITE setShadesPen NOTIFY shadesPenChanged)
Q_PROPERTY(QBrush shadesBrush READ shadesBrush WRITE setShadesBrush NOTIFY shadesBrushChanged)
//title
Q_PROPERTY(QString titleText READ titleText WRITE setTitleText NOTIFY titleTextChanged)
Q_PROPERTY(QBrush titleBrush READ titleBrush WRITE setTitleBrush NOTIFY titleBrushChanged)
Q_PROPERTY(bool titleVisible READ isTitleVisible WRITE setTitleVisible NOTIFY titleVisibleChanged)
Q_PROPERTY(QFont titleFont READ titleFont WRITE setTitleFont NOTIFY titleFontChanged)
//orientation
Q_PROPERTY(Qt::Orientation orientation READ orientation)
//aligment
Q_PROPERTY(Qt::Alignment alignment READ alignment)
Q_PROPERTY(bool reverse READ isReverse WRITE setReverse NOTIFY reverseChanged)
public:
enum AxisType {
AxisTypeNoAxis = 0x0,
AxisTypeValue = 0x1,
AxisTypeBarCategory = 0x2,
AxisTypeCategory = 0x4,
AxisTypeDateTime = 0x8,
AxisTypeLogValue = 0x10
};
Q_DECLARE_FLAGS(AxisTypes, AxisType)
protected:
explicit QAbstractAxis(QAbstractAxisPrivate &d, QObject *parent = nullptr);
public:
~QAbstractAxis();
virtual AxisType type() const = 0;
//visibility handling
bool isVisible() const;
void setVisible(bool visible = true);
void show();
void hide();
//arrow handling
bool isLineVisible() const;
void setLineVisible(bool visible = true);
void setLinePen(const QPen &pen);
QPen linePen() const;
void setLinePenColor(QColor color);
QColor linePenColor() const;
//grid handling
bool isGridLineVisible() const;
void setGridLineVisible(bool visible = true);
void setGridLinePen(const QPen &pen);
QPen gridLinePen() const;
bool isMinorGridLineVisible() const;
void setMinorGridLineVisible(bool visible = true);
void setMinorGridLinePen(const QPen &pen);
QPen minorGridLinePen() const;
void setGridLineColor(const QColor &color);
QColor gridLineColor();
void setMinorGridLineColor(const QColor &color);
QColor minorGridLineColor();
//labels handling
bool labelsVisible() const;
void setLabelsVisible(bool visible = true);
void setLabelsBrush(const QBrush &brush);
QBrush labelsBrush() const;
void setLabelsFont(const QFont &font);
QFont labelsFont() const;
void setLabelsAngle(int angle);
int labelsAngle() const;
void setLabelsColor(QColor color);
QColor labelsColor() const;
//title handling
bool isTitleVisible() const;
void setTitleVisible(bool visible = true);
void setTitleBrush(const QBrush &brush);
QBrush titleBrush() const;
void setTitleFont(const QFont &font);
QFont titleFont() const;
void setTitleText(const QString &title);
QString titleText() const;
//shades handling
bool shadesVisible() const;
void setShadesVisible(bool visible = true);
void setShadesPen(const QPen &pen);
QPen shadesPen() const;
void setShadesBrush(const QBrush &brush);
QBrush shadesBrush() const;
void setShadesColor(QColor color);
QColor shadesColor() const;
void setShadesBorderColor(QColor color);
QColor shadesBorderColor() const;
Qt::Orientation orientation() const;
Qt::Alignment alignment() const;
//range handling
void setMin(const QVariant &min);
void setMax(const QVariant &max);
void setRange(const QVariant &min, const QVariant &max);
//reverse handling
void setReverse(bool reverse = true);
bool isReverse() const;
//label editable handling
void setLabelsEditable(bool editable = true);
bool labelsEditable() const;
Q_SIGNALS:
void visibleChanged(bool visible);
void linePenChanged(const QPen &pen);
void lineVisibleChanged(bool visible);
void labelsVisibleChanged(bool visible);
void labelsBrushChanged(const QBrush &brush);
void labelsFontChanged(const QFont &pen);
void labelsAngleChanged(int angle);
void gridLinePenChanged(const QPen &pen);
void gridVisibleChanged(bool visible);
void minorGridVisibleChanged(bool visible);
void minorGridLinePenChanged(const QPen &pen);
void gridLineColorChanged(const QColor &color);
void mi
没有合适的资源?快使用搜索试试~ 我知道了~
QtCharts_dev_for_Qt4.8.6.zip
共616个文件
h:414个
png:87个
qdoc:48个
5星 · 超过95%的资源 需积分: 1 66 下载量 122 浏览量
2021-06-26
17:19:35
上传
评论 1
收藏 7.76MB ZIP 举报
温馨提示
Qt4.8.6下的QtCharts库
资源推荐
资源详情
资源评论
收起资源包目录
QtCharts_dev_for_Qt4.8.6.zip (616个子文件)
offline.css 13KB
QtChartsd.dll 2.14MB
QtCharts.dll 1.12MB
qabstractaxis.h 9KB
chartthemesystem_p.h 8KB
chartaxiselement_p.h 8KB
qchart.h 7KB
chartpresenter_p.h 7KB
scatterchartitem_p.h 6KB
qpieslice.h 5KB
qxyseries.h 5KB
abstractdomain_p.h 5KB
qcandlestickseries.h 5KB
qabstractbarseries_p.h 5KB
areachartitem_p.h 5KB
qareaseries.h 5KB
qlegend.h 5KB
qabstractbarseries.h 5KB
pieslicedata_p.h 4KB
qbarset.h 4KB
abstractbarchartitem_p.h 4KB
legendmarkeritem_p.h 4KB
qabstractaxis_p.h 4KB
candlestick_p.h 4KB
chartdataset_p.h 4KB
qlegendmarker.h 4KB
abstractchartlayout_p.h 4KB
qvalueaxis.h 4KB
qcandlestickmodelmapper_p.h 4KB
qcandlestickseries_p.h 4KB
boxwhiskers_p.h 4KB
qabstractseries_p.h 4KB
charttheme_p.h 4KB
qpieseries.h 4KB
splinechartitem_p.h 4KB
qlegend_p.h 4KB
glwidget_p.h 4KB
glxyseriesdata_p.h 4KB
piesliceitem_p.h 4KB
qboxplotseries_p.h 4KB
qbarmodelmapper_p.h 4KB
qxymodelmapper_p.h 4KB
qpiemodelmapper_p.h 4KB
qpieseries_p.h 4KB
qabstractseries.h 4KB
bar_p.h 4KB
qboxplotmodelmapper_p.h 4KB
linechartitem_p.h 3KB
cartesianchartaxis_p.h 3KB
xychart_p.h 3KB
piechartitem_p.h 3KB
scroller_p.h 3KB
qboxplotseries.h 3KB
qcandlestickset.h 3KB
chartthememanager_p.h 3KB
chartthemehighcontrast_p.h 3KB
qhcandlestickmodelmapper.h 3KB
candlestickchartitem_p.h 3KB
chartthemeqt_p.h 3KB
chartthemelight_p.h 3KB
qboxset.h 3KB
logxlogypolardomain_p.h 3KB
qbarcategoryaxis.h 3KB
qhboxplotmodelmapper.h 3KB
qvcandlestickmodelmapper.h 3KB
chartthemeblueicy_p.h 3KB
logxlogydomain_p.h 3KB
qlogvalueaxis.h 3KB
chartthemebluecerulean_p.h 3KB
qvboxplotmodelmapper.h 3KB
qvbarmodelmapper.h 3KB
qhbarmodelmapper.h 3KB
chartthemebrownsand_p.h 3KB
chartthemedark_p.h 3KB
qbarset_p.h 3KB
chartthemebluencs_p.h 3KB
boxplotchartitem_p.h 3KB
qcategoryaxis.h 3KB
logxypolardomain_p.h 3KB
xlogypolardomain_p.h 3KB
qxyseries_p.h 3KB
qscatterseries.h 3KB
qhpiemodelmapper.h 3KB
qvpiemodelmapper.h 3KB
logxydomain_p.h 3KB
xlogydomain_p.h 3KB
qcandlestickmodelmapper.h 3KB
qareaseries_p.h 3KB
polarchartaxisangular_p.h 3KB
qvxymodelmapper.h 3KB
qhxymodelmapper.h 3KB
legendlayout_p.h 3KB
qbarcategoryaxis_p.h 3KB
qdatetimeaxis.h 3KB
qpieslice_p.h 3KB
qlegendmarker_p.h 3KB
polarchartaxisradial_p.h 3KB
linearrowitem_p.h 3KB
candlestickbodywicksanimation_p.h 3KB
boxwhiskersanimation_p.h 3KB
共 616 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- sango19942022-08-02求作者来个简要的使用说明啊
刘亿辰
- 粉丝: 73
- 资源: 79
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 2%EF%BC%9A%E9%99%95%E8%A5%BF%E
- yyspdz62_944.apk
- SAP公司间采购EDI配置-如何触发自动MIRO.docx
- python197基于图像识别的仪表实时监控系统.rar
- python196基于循环神经网络的情感分类系统.rar
- I2C驱动SHT30温湿度传感器和LCD12864使用例程(RSCG12864B)
- python193中学地理-中国的江河湖泊教学网(django).rar
- python191基于时间序列分析的大气污染预测软件(django).rar
- python190基于人脸识别智能化小区门禁管理系统.rar
- python189某医院体检挂号系统.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功