自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(64)
  • 收藏
  • 关注

原创 /dev/console May Not Work in WSL

【代码】/dev/console May Not Work in WSL。

2025-07-13 22:20:20 121

原创 写一个ununtu C++ 程序,调用ffmpeg , 来判断一个数字电影的音频文件mxf 的 采样率(频率),通道数, 采样位数

以下是一个,使用来检测数字电影音频 MXF 文件的。

2025-07-04 17:16:12 892

原创 写一个Ununtu C++ 程序,调用ffmpeg API, 来判断一个数字电影的视频文件mxf 是不是Jpeg2000?

适合集成到自动化工具或大型项目。

2025-07-04 17:00:24 717

原创 安装 libasdcp-2.10.35

ldd $(which asdcp-test) # 查看程序依赖的库。这是因为 Ubuntu/WSL 默认不会自动搜索。库文件可能缺少可执行权限(但通常安装时已自动设置)。asdcp-test -v # 再次运行测试程序。sudo ldconfig # 更新系统库缓存。asdcp-test -v # 验证是否生效。Ubuntu/WSL 默认不包含。在动态库搜索路径中,需手动添加。动态库文件,尽管它已经安装在。,则表示已正确加载。# 1. 添加库路径。# 2. 更新库缓存。

2025-07-04 07:33:41 514

原创 卸载 asdcplib sudo make uninstall

wsl@LAPTOP-N39A7Q24:/usr/local/src/asdcplib$ lsCHANGES CONTRIBUTING.md Makefile Makefile.in README.md aclocal.m4 asdcplib-1.12.58.tar.gz autom4te.cache config.log configure libtool registers win32CMakeLists.txt

2025-07-04 07:07:01 355

原创 数据结构修改,replace with TreeNode by StandardTreeNode;replace with TreeData by StandardTreeData;并且加入

/ 标识值(如"rootItem1_IdentifyValue")// 存储所有根节点。// 标识类型(如"placeHolder")// 描述(如"零件编号"、"实例名称")// 唯一标识(使用 QUuid 生成)// 节点名称(如"工装"、"定位销")// 后续可以通过 item->data(Qt::UserRole + 1) 获取ID。// 如果 item 有自定义数据(如之前存储的ID),可以读取。#include <QUuid> // 用于生成唯一ID。// 通过ID查找节点(递归搜索)

2025-06-27 10:26:28 754

原创 Show QTreeView in the QComboBox

4. 功能说明 树形结构展示: 支持多级树形结构 可展开/折叠节点 可设置默认展开层级 选择模式: 单选模式(点击后自动关闭) 多选模式(点击不关闭,失去焦点时关闭) 数据显示: 多选时用逗号分隔显示选中项 可获取选中项的显示文本和关联数据 样式定制: 内置美观的默认样式 可通过样式表进一步自定义 信号通知:============================= cpp复制下载#ifndef TREECOMBOBOX_H#define TREECOMBOBOX_H#include <QC

2025-06-23 13:24:04 772

原创 QOpenGLWidget 中能同时显示 .step 的结构树和渲染图吗

是的,可以在 QOpenGLWidget 中同时显示 STEP 文件的结构树和 3D 渲染图。

2025-06-12 17:36:45 917

原创 用 OpenCascade 做一个界面

OpenCascade (OCC) 本身主要是一个几何建模内核,要创建完整的图形界面通常需要结合其他GUI框架。

2025-06-12 10:07:00 582

原创 in the latest version, no need to use --- if (timer.isActive()) ?

if (!});if (!success) {

2025-05-22 11:49:26 763

原创 QTableView 表头多行、多列

cpp复制下载Q_OBJECTpublic:// 设置单元格文本// 设置单元格跨度protected:if (!

2025-04-25 11:54:09 1032

原创 Build and Install asdcplib

and。

2025-04-19 20:23:12 547

原创 build cinecert/asdcplib to .so or .a

ASDCPlib。

2025-03-30 22:32:25 888

原创 C++ QT defined a CustomTreeView, 可选择多个node,并且可拖动这些node,改变父节点

if (!if (!

2025-03-28 20:26:51 1075

原创 C++ QT 树支持按住Ctrl, 多次点击,多选node 吗?

Yes, in C++ Qt, you can enable multiple selections in a using for multi-click selection. This is handled by setting the property of the tree view to , which allows multiple nodes to be selected using the key.Here’s how you can enable multiple node sele

2025-03-13 14:30:19 498

原创 C++ Qt 实现许可证

为了防止许可证被复制到其他设备,我们需要。:服务器返回许可证,AES 加密存储。:检查过期、设备 ID、联网验证。,可以防止许可证被修改和滥用 🚀。本地存储和验证,可以使用。:防止盗版(每 7 天联网)计算设备 ID,并使用。服务器激活后,将许可证信息。:防止拷贝许可证到其他设备。:加密 & 绑定设备。

2025-03-04 21:04:14 677

原创 C++ Qt login an https server, no use connect

If you want to perform an HTTPS login in C++ with Qt, without using the mechanism (which is usually used for event-driven signal-slot communication), you can handle the network request synchronously or with a separate thread to avoid blocking the main thr

2025-03-01 11:36:31 1106 1

原创 python unzip file

要在 Python 中解压文件并显示进度,我们需要在解压过程中跟踪文件的提取进度。由于zipfile模块本身不直接支持进度显示,我们可以通过手动计算并使用tqdm库来显示进度条。

2025-02-25 21:03:15 385

原创 python zipfile

在压缩文件时打印进度,通常可以通过计算文件的大小和已经处理的文件数来实现。为了实现一个简单的进度条,我们可以使用 库来帮助我们显示进度。首先,你需要安装 库。如果还没有安装,可以通过以下命令来安装:示例代码:打印压缩进度下面的代码展示了如何使用 来显示文件压缩进度:当你运行代码时,命令行会显示类似下面的进度条:提示: 会自动计算压缩进度,显示速度和已处理的文件数。 如果你有很多小文件,进度条会比较顺利;如果文件非常大,进度更新可能会稍慢。如果有任何

2025-02-25 20:57:45 378

原创 python script support “supporting resumable downloads“

【代码】python script support “supporting resumable downloads“

2025-02-14 15:50:15 844

原创 MinIO Download failed: “Host requires authentication“

【代码】MinIO Download failed: “Host requires authentication“

2025-02-14 10:13:47 908

原创 pip install pyqt5 via PyCharm

install pyqt5

2025-02-08 15:42:22 94

原创 C++ Qt, 使用QTableView,分页功能

好的!使用QTableView来实现分页功能是一个很好的选择。以下是一个基于QTableView的示例代码,展示如何实现带有分页功能的表格视图。

2025-01-17 10:02:54 561

原创 (转)请教QTreeWidget如何设置让节点之间显示连线(虚线)

http://t.csdnimg.cn/5vljP

2025-01-15 15:22:13 232

原创 Bookmarks by the Numbers for VS2022

工具选项环境键盘。

2024-12-19 17:34:02 191

原创 How to instll vcpkg, tacopie, redis

I apologize for the confusion regarding the URLs for the library. It appears the project has moved or is not well-documented at the moment.As of now, here’s a definitive path for installing and , as well as linking them properly.Use vcpkg Package Manager

2024-12-12 11:24:24 676

原创 在windows 上安装 cpp_redis 库

如果你在安装或使用中遇到问题,请检查 CMake 输出中的错误信息,确保所有依赖项和路径都已正确设置。确保 Redis 服务器已启动并运行在默认端口(6379),以便测试代码。在 Windows 上安装。

2024-12-12 10:53:26 460

原创 用redis 实现消息队列

Redis 提供了一个高效且易于实现的基础设施,用于构建基于消息的系统。你可以扩展这个基本的消息队列实现,根据具体需求添加错误处理、消息确认和持久化等功能。

2024-12-12 10:52:48 329

原创 用 std C++ 实现,结合 std::thread、std::queue、std::mutex 和 std::condition_variable 来实现一个简易的线程池,处理异步消息

线程池的核心功能使用多个工作线程从队列中提取任务并执行。支持动态添加任务。线程池的安全性使用std::mutex和确保多线程环境下的任务队列操作是线程安全的。灵活性可以通过添加任意符合签名的任务。优雅关闭使用stopFlag和条件变量,确保线程池能正确地通知和关闭所有工作线程。运行程序后,您将在控制台看到任务被分配到不同线程执行的日志输出。

2024-12-11 17:02:37 289

原创 Windows 上,消息队列怎么实现?

下面是一个使用C++ STL的std::queuestd::mutex和实现的简单消息队列。// 消息队列类public:// 向队列中添加消息// 通知消费者有新消息// 从队列中获取消息(阻塞式)T pop() {});// 等待队列非空private:// 消息队列// 互斥锁// 条件变量// 消费者线程// 获取消息// 生产者线程。

2024-12-11 16:46:25 1018

原创 QT Add existing item Building ERROR root cause:

2024-11-21 08:45:32 330

原创 A AfxWinMain Exception of VS2022 C++ Qt project

Step 1: Set the Character Set as "Use Unicode Character Set"Step 2: Build succeedStep 3: Running the project, faced this Error:Solution:Change the Character Set to "Not Set"

2024-11-14 16:18:17 183

原创 On VS2022, Extract tlb to .h

Required:

2024-10-14 10:01:21 126

原创 How to build and run this Java server?

【代码】How to build and run this Java server?

2024-10-12 15:46:33 985

原创 design a POST API, download a file. at the same time return the file name in the response. Use java

【代码】design a POST API, download a file. at the same time return the file name in the response. Use java。

2024-10-12 15:45:46 783

原创 QT combox 前缀匹配

通过使用QCompleter,你可以轻松实现QComboBox的前缀匹配功能,让用户在输入时快速筛选出匹配的选项。这样可以提升用户体验,尤其是在选项较多的情况下。

2024-10-01 16:58:21 572

原创 Exception thrown at 0x00007FFC45507C1D (mfc140ud.dll) in InsertUnitPart.exe: 0xC0000005: Access viol

Buildseccessful解决办法:Unicode -> No Set。

2024-10-01 16:58:02 1026

原创 Every newconnection, use a thread.

 To modify your existing TCP server implementation in the class so that every new connection is handled in its own separate thread, you'll need to create a for each new connection. This can be achieved by creating a dedicated class to handle client conne

2024-09-23 17:34:23 634

原创 Using namedPipes, how to cover many events?

or。

2024-09-20 14:28:14 916

原创 this is Tlb style. CAAIAObject is my Customer Class. how to translate it to COM style

【代码】this is Tlb style. CAAIAObjectGIDFactory is my Customer Class. how to translate it to COM style。

2024-09-13 14:53:08 114

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除