<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[junxuezheng的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/junxuezheng</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; junxuezheng]]></copyright><item><title><![CDATA[【c++随笔30】C++ 注册回调函数]]></title><link>https://blog.csdn.net/junxuezheng/article/details/145456783</link><guid>https://blog.csdn.net/junxuezheng/article/details/145456783</guid><author>junxuezheng</author><pubDate>Tue, 20 Oct 2026 06:00:00 +0800</pubDate><description><![CDATA[在 C++ 中，回调函数是指一个函数通过参数传递给另一个函数，在特定的时机被调用。在 C++ 中，回调函数可以是普通的函数，也可以是类的成员函数。方式一：原始指针直接调用——直接传递 Me 类对象的地址方式二：std::bind绑定成员函数——使用 std::bind 绑定 Me 类成员函数方式三：使用 std::function 直接传递回调函数直接传递类对象的地址：简单直观，适合于紧耦合的场景，但缺乏灵活性。]]></description><category></category></item><item><title><![CDATA[【c++随笔29】结构体和char*转换（序列化和反序列化）]]></title><link>https://blog.csdn.net/junxuezheng/article/details/144650056</link><guid>https://blog.csdn.net/junxuezheng/article/details/144650056</guid><author>junxuezheng</author><pubDate>Fri, 16 Oct 2026 15:21:35 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/144650056在 C++ 中，结构体（struct）和 char* 之间的转换通常涉及将结构体的内容序列化为一个字节流（即 char* 指针指向的内存块），或者将 char* 字节流解析回结构体。]]></description><category></category></item><item><title><![CDATA[【c++随笔28】strcmp 和 memcmp对比]]></title><link>https://blog.csdn.net/junxuezheng/article/details/144635301</link><guid>https://blog.csdn.net/junxuezheng/article/details/144635301</guid><author>junxuezheng</author><pubDate>Thu, 01 Oct 2026 17:43:30 +0800</pubDate><description><![CDATA[特性strcmpmemcmp比较内容比较字符串（以 \0 结尾的字符数组）比较内存区域（按字节）比较的结束条件遇到 \0 或不同字符时停止比较指定的字节数，完全按照字节进行比较返回值如果字符串相等返回 0，否则返回非零值如果内存区域相等返回 0，否则返回非零值使用场景比较字符串，判断字符串是否相等、字典序大小比较任何内存区域的数据（如结构体、数组等）错误处理字符串必须以 \0 结尾，未以 \0 结尾时未定义内存区域不能重叠，若重叠应使用 memmove。]]></description><category></category></item><item><title><![CDATA[【c++随笔27】判断两个结构体是否相等 memcmp]]></title><link>https://blog.csdn.net/junxuezheng/article/details/144634935</link><guid>https://blog.csdn.net/junxuezheng/article/details/144634935</guid><author>junxuezheng</author><pubDate>Tue, 15 Sep 2026 06:00:00 +0800</pubDate><description><![CDATA[在 C++ 中，判断两个结构体是否相等，通常需要比较结构体的每个成员变量。如果结构体包含的成员变量类型都是可以直接比较的（如整数、浮点数、指针等），你可以逐一比较这些成员。至于是否可以转换为 char* 来进行比较，这取决于结构体的成员类型和内存布局。简单来说，结构体对象在内存中的表示是一个连续的内存块，但不能直接将整个结构体对象转换为 char* 来进行比较，因为结构体可能包含指针类型成员或者其他复杂类型，其内存布局不一定适合直接通过字节对比来判断相等。]]></description><category></category></item><item><title><![CDATA[【Qt教程32】MSVC 运行时库：从开发到部署的完整过程]]></title><link>https://blog.csdn.net/junxuezheng/article/details/161287941</link><guid>https://blog.csdn.net/junxuezheng/article/details/161287941</guid><author>junxuezheng</author><pubDate>Tue, 08 Sep 2026 06:00:00 +0800</pubDate><description><![CDATA[运行时库是必选项：仅拷贝 Qt DLL 不够，MSVC 运行时（msvcp、vcruntime、ucrt）缺一不可。VC Redistributable 是正道：解决"缺库"的最佳方案，2015-2022 已统一，只需安装最新版。：前者是编译引擎，后者是开发材料，两者共同构成完整工具链。运行时库来源二分：Build Tools 提供 C++ 层（msvcp / vcruntime），SDK 提供 C 运行时基础（ucrtbase）。部署二选一。]]></description><category></category></item><item><title><![CDATA[【Qt教程31】GCC 9.3.1 ARM64 下含 QString 结构体的隐式拷贝构造崩溃]]></title><link>https://blog.csdn.net/junxuezheng/article/details/161613304</link><guid>https://blog.csdn.net/junxuezheng/article/details/161613304</guid><author>junxuezheng</author><pubDate>Mon, 31 Aug 2026 06:00:00 +0800</pubDate><description><![CDATA[不要过早下结论—— 最初的memcpy越界理论在 demo 上无法复现，说明分析是错误的。只有通过对比实验（显式 vs 隐式拷贝构造）才能锁定根因在 GCC 的隐式代码生成Demo 复现—— 复现可能不触发编译器的特定优化路径，复现 demo 无法接近真实场景；最小化复现—— 脱离 QTableWidget 直接用测试，排除了 UI 层的干扰。]]></description><category></category></item><item><title><![CDATA[【Qt教程30】Qt XML 解析]]></title><link>https://blog.csdn.net/junxuezheng/article/details/161278219</link><guid>https://blog.csdn.net/junxuezheng/article/details/161278219</guid><author>junxuezheng</author><pubDate>Tue, 25 Aug 2026 06:00:00 +0800</pubDate><description><![CDATA[DOM（Document Object Model）将整个 XML 文档加载到内存中，构建一棵树形结构的节点树。你可以像遍历文件夹一样访问任意节点。XML 文档└── 根元素├── 子元素A│ ├── 叶子节点1│ └── 叶子节点2└── 子元素B└── 叶子节点3首先，定义用于存储解析结果的结构体。这与我们上面的 XML 结构一一对应。// 会员类型枚举（XML → 结构体的映射目标）NORMAL = 1, // 普通会员PREMIUM = 2, // 高级会员。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot14】示例4：基于 QCustomPlot 的带边界约束与比例保持的交互式绘图实现]]></title><link>https://blog.csdn.net/junxuezheng/article/details/156594325</link><guid>https://blog.csdn.net/junxuezheng/article/details/156594325</guid><author>junxuezheng</author><pubDate>Thu, 20 Aug 2026 06:00:00 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/156594325支持鼠标拖拽平移、滚轮缩放，并且要求图形不变形（如圆形始终显示为圆），同时不能超出预设的数据边界。本文将基于 Qt 5 与开源图表库 QCustomPlot，完整实现这一功能。本文全部代码下载。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot13】示例3：解决带范围限制的坐标轴缩放导致的图形形变问题]]></title><link>https://blog.csdn.net/junxuezheng/article/details/156567803</link><guid>https://blog.csdn.net/junxuezheng/article/details/156567803</guid><author>junxuezheng</author><pubDate>Mon, 10 Aug 2026 06:00:00 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/156567803。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot12】示例2：自定义选择框的样式]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155307044</link><guid>https://blog.csdn.net/junxuezheng/article/details/155307044</guid><author>junxuezheng</author><pubDate>Tue, 04 Aug 2026 06:00:00 +0800</pubDate><description><![CDATA[作用：完全自定义选择矩形的行为行为：绘制选择矩形，但不执行任何内置操作程序员需要手动连接信号处理用户交互// 选择矩形被接受（释放鼠标）// 选择矩形正在改变// 选择矩形被取消要求：鼠标滑动时显示有颜色的矩形框，鼠标松开时不放大，也不移动，颜色矩形框不消失。下次鼠标点击，矩形框重新绘制第一步：自定义QCPItemRect第二步：设置QCPItemRect的颜色样式，并提升到顶层。第三步：鼠标按下、移动、松开时定义QCPItemRect的状态和大小完整demo。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot11】示例1：QCustomPlot绘制圆的四种方法]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155304468</link><guid>https://blog.csdn.net/junxuezheng/article/details/155304468</guid><author>junxuezheng</author><pubDate>Tue, 28 Jul 2026 06:00:00 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/155304468在数据可视化和科学计算中，经常需要在二维坐标系中绘制圆形。QCustomPlot作为Qt中功能强大的绘图库，提供了多种绘制圆形的方法。本文将基于实际demo，详细解析四种不同的绘制圆形技术。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot10】QCustomPlot 导出图表]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155299805</link><guid>https://blog.csdn.net/junxuezheng/article/details/155299805</guid><author>junxuezheng</author><pubDate>Mon, 20 Jul 2026 06:00:00 +0800</pubDate><description><![CDATA[在数据可视化应用中，将图表保存为图像或 PDF 文件是非常常见的需求。QCustomPlot 提供了简单而强大的导出接口，支持多种格式（PNG、JPG、BMP、PDF），并且可以精确控制分辨率、尺寸和质量。通用参数（适用于所有格式）fileName - 保存的文件路径和名称width - 输出宽度（像素），0=使用当前宽度height - 输出高度（像素），0=使用当前高度scale - 缩放因子（PNG/JPG/BMP专用），1.0=原始大小。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot09】QCustomPlot 刻度器系统]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155241911</link><guid>https://blog.csdn.net/junxuezheng/article/details/155241911</guid><author>junxuezheng</author><pubDate>Mon, 13 Jul 2026 06:00:00 +0800</pubDate><description><![CDATA[QCustomPlot 刻度器系统详解在 QCustomPlot 中，坐标轴上的刻度（tick）和标签（label）由 刻度器（Ticker） 控制。所有刻度器都继承自基类 QCPAxisTicker，通过 axis->setTicker(ticker) 设置。基类：QCPAxisTicker虚基类，定义了生成刻度的核心接口。实际使用中，我们总是使用其子类。QCustomPlot 刻度器（Ticker），包含6 种常用刻度器刻度器用途数据类型关键设置固定步长double对数轴。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot08】布局系统QCPLayout]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155240746</link><guid>https://blog.csdn.net/junxuezheng/article/details/155240746</guid><author>junxuezheng</author><pubDate>Mon, 06 Jul 2026 06:00:00 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/155240746在使用 QCustomPlot 进行绘图时，了解其布局系统是非常重要的。QCustomPlot 提供了灵活的布局管理器，使得我们可以轻松地安排图表和其他元素的位置。以下是关于 QCustomPlot 布局系统的简要教程和简单的 demo 示例。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot07】QCustomPlot 交互功能与用户操作]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155229882</link><guid>https://blog.csdn.net/junxuezheng/article/details/155229882</guid><author>junxuezheng</author><pubDate>Mon, 29 Jun 2026 06:00:00 +0800</pubDate><description><![CDATA[数据追踪器（QCPItemTracer）十字光标（十字坐标线）自定义鼠标事件处理。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot06】项目类(Item Classes）]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155200761</link><guid>https://blog.csdn.net/junxuezheng/article/details/155200761</guid><author>junxuezheng</author><pubDate>Wed, 24 Jun 2026 06:00:00 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/155200761。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot05】绘图类型(QCPGraph、QCPCurve、QCPColorMap、QCPBars、QCPStatisticalBox、QCPFinancial、QCPError)]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155134029</link><guid>https://blog.csdn.net/junxuezheng/article/details/155134029</guid><author>junxuezheng</author><pubDate>Wed, 17 Jun 2026 05:00:00 +0800</pubDate><description><![CDATA[原创作者：郑同学的笔记原文链接：https://zhengjunxue.blog.csdn.net/article/details/155134029。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot04】图层（Layers）]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155132556</link><guid>https://blog.csdn.net/junxuezheng/article/details/155132556</guid><author>junxuezheng</author><pubDate>Mon, 08 Jun 2026 05:00:00 +0800</pubDate><description><![CDATA[QCustomPlot 是一个用于 Qt 的轻量级、高性能绘图控件，广泛应用于科学数据可视化、工程监控等领域。其内部采用“图层”（Layer）机制来组织和管理图形元素的绘制顺序与可见性。图层系统是 QCustomPlot 渲染架构的核心组成部分。通过将不同的图形对象（如坐标轴、网格线、图例、数据曲线等）分配到不同的图层，QCustomPlot 能够高效地控制绘制顺序、优化重绘性能，并支持复杂的视觉效果（例如背景/前景分离、透明叠加等）。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot03】图例管理（Legend）]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155110025</link><guid>https://blog.csdn.net/junxuezheng/article/details/155110025</guid><author>junxuezheng</author><pubDate>Mon, 01 Jun 2026 06:00:00 +0800</pubDate><description><![CDATA[在 QCustomPlot 中，图例（Legend）用于标识图表中不同数据线（或数据项）的含义（通常显示每个数据系列的名称和对应的颜色、标记或线型。默认情况下，QCustomPlot 会为每个添加到图中的 QCPGraph 自动生成图例项，前提是该 graph 设置了名称（通过 setName() 方法）。]]></description><category></category></item><item><title><![CDATA[【QCustomPlot02】QCPAbstractPlottable 图形基类]]></title><link>https://blog.csdn.net/junxuezheng/article/details/155095032</link><guid>https://blog.csdn.net/junxuezheng/article/details/155095032</guid><author>junxuezheng</author><pubDate>Mon, 25 May 2026 06:00:00 +0800</pubDate><description><![CDATA[数据存储与访问样式设置（颜色、线型、标记等）用户交互（选择、高亮）图例项管理所有具体的图形类型（如 QCPGraph、QCPCurve、QCPBars 等）都继承自该类。]]></description><category></category></item></channel></rss>