资源简介
## QtQuick开发需要C++基础和JS基础
* 掌握必要的C++基础是学习和使用QtQuick框架的重要基石
## QCustomPlot能做什么
* 可以在QWidget大放异彩,绘制各种图表和曲线
* 也可以在QtQuick大展拳脚
## 基于QtQuick的QCustomPlot实现
* 继承QQuickPaintedItem类 实现绘制

代码片段和文件信息
#include
//#include
#include
#include
#include “qmlplot.h“
int main(int argc char *argv[])
{
QApplication a(argc argv);
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
// QGuiApplication app(argc argv);
qmlRegisterType(“CustomPlot“ 1 0 “CustomPlotItem“);
qmlRegisterType(“CustomPlot“ 1 0 “CustomPlotBarItem“);
qmlRegisterType(“CustomPlot“ 1 0 “CustomKLine“);//CustomColorMap
qmlRegisterType(“CustomPlot“ 1 0 “CustomColorMap“);
qmlRegisterType(“CustomPlot“ 1 0 “CustomBarChart“);
QQmlApplicationEngine engine;
engine.load(QUrl(QLatin1String(“qrc:/main.qml“)));
return a.exec();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 391 2019-03-06 10:43 qml.qrc
文件 19819 2019-02-27 14:30 qmlplot.cpp
文件 2241 2019-02-27 14:26 qmlplot.h
文件 1310 2019-02-28 14:58 qmlplot.pro
文件 309 2017-03-21 21:14 qtquickcontrols2.conf
文件 4785 2019-03-19 18:16 README.md
文件 411 2019-02-28 14:59 combox.xm
文件 278 2019-02-27 14:30 CustomBarCharts.qml
文件 275 2019-02-27 14:24 CustomColorMap.qml
文件 272 2019-02-27 14:24 CustomKLine.qml
文件 309 2019-02-25 18:31 CustomPlotBar.qml
文件 1685 2019-03-06 10:47 DDRubberband.qml
文件 822 2019-02-27 14:28 main.cpp
文件 1875 2019-03-06 10:45 main.qml
文件 264 2017-03-21 21:14 PlotView.qml
文件 1098093 2017-03-21 21:14 qcustomplot.cpp
文件 262589 2017-03-21 21:14 qcustomplot.h
- 上一篇:matlab 调用face_landmark接口
- 下一篇:四种VC表格控件源码
相关资源
- 国际象棋的qt源代码
- QT上位机
- qt媒体播放器
- QT5开发及源代码
- qt完整项目
- C++ mqtt 用法
- qt进度条(RoundProgressBar)
- Qt的纽带风格界面实现(Office Ribbon风
- qt 实现画板
- QT Hisi demo
- 基础qt数据库读取和显示
- Qt画图工具源码(qgraphics draw)
- Qt查询SQLite数据库
- QtWebApp
- Qt 实现心电图
- Qt实现 屏幕截图
- qt cmd实现ping
- QT实现USB摄像头拍照
- qt texteditor(富文本编辑器)
- qt 串口助手源码
- qt登录富文本编辑器和文档打印设计
- 使用QWT库实现接收串口数据,并根据
- QT SQLite封装
- QML非常经典的代码
- QT半透明效果界面
- Qt5串口通信-windows
- 计算机远程唤醒和关机
- 使用wxWidgets进行跨平台程序开发
- QT 动态曲线
- QT视频播放器(基于FFmpeg)
评论
共有 条评论