- 博客(57)
- 收藏
- 关注
原创 QOpenGLWidget 中能同时显示 .step 的结构树和渲染图吗
是的,可以在 QOpenGLWidget 中同时显示 STEP 文件的结构树和 3D 渲染图。
2025-06-12 17:36:45
380
原创 用 OpenCascade 做一个界面
OpenCascade (OCC) 本身主要是一个几何建模内核,要创建完整的图形界面通常需要结合其他GUI框架。
2025-06-12 10:07:00
274
原创 in the latest version, no need to use --- if (timer.isActive()) ?
if (!});if (!success) {
2025-05-22 11:49:26
756
原创 QTableView 表头多行、多列
cpp复制下载Q_OBJECTpublic:// 设置单元格文本// 设置单元格跨度protected:if (!
2025-04-25 11:54:09
979
原创 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
492
原创 C++ Qt 实现许可证
为了防止许可证被复制到其他设备,我们需要。:服务器返回许可证,AES 加密存储。:检查过期、设备 ID、联网验证。,可以防止许可证被修改和滥用 🚀。本地存储和验证,可以使用。:防止盗版(每 7 天联网)计算设备 ID,并使用。服务器激活后,将许可证信息。:防止拷贝许可证到其他设备。:加密 & 绑定设备。
2025-03-04 21:04:14
617
原创 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
1081
1
原创 python unzip file
要在 Python 中解压文件并显示进度,我们需要在解压过程中跟踪文件的提取进度。由于zipfile模块本身不直接支持进度显示,我们可以通过手动计算并使用tqdm库来显示进度条。
2025-02-25 21:03:15
354
原创 python zipfile
在压缩文件时打印进度,通常可以通过计算文件的大小和已经处理的文件数来实现。为了实现一个简单的进度条,我们可以使用 库来帮助我们显示进度。首先,你需要安装 库。如果还没有安装,可以通过以下命令来安装:示例代码:打印压缩进度下面的代码展示了如何使用 来显示文件压缩进度:当你运行代码时,命令行会显示类似下面的进度条:提示: 会自动计算压缩进度,显示速度和已处理的文件数。 如果你有很多小文件,进度条会比较顺利;如果文件非常大,进度更新可能会稍慢。如果有任何
2025-02-25 20:57:45
364
原创 python script support “supporting resumable downloads“
【代码】python script support “supporting resumable downloads“
2025-02-14 15:50:15
840
原创 MinIO Download failed: “Host requires authentication“
【代码】MinIO Download failed: “Host requires authentication“
2025-02-14 10:13:47
877
原创 C++ Qt, 使用QTableView,分页功能
好的!使用QTableView来实现分页功能是一个很好的选择。以下是一个基于QTableView的示例代码,展示如何实现带有分页功能的表格视图。
2025-01-17 10:02:54
534
原创 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
674
原创 在windows 上安装 cpp_redis 库
如果你在安装或使用中遇到问题,请检查 CMake 输出中的错误信息,确保所有依赖项和路径都已正确设置。确保 Redis 服务器已启动并运行在默认端口(6379),以便测试代码。在 Windows 上安装。
2024-12-12 10:53:26
427
原创 用redis 实现消息队列
Redis 提供了一个高效且易于实现的基础设施,用于构建基于消息的系统。你可以扩展这个基本的消息队列实现,根据具体需求添加错误处理、消息确认和持久化等功能。
2024-12-12 10:52:48
315
原创 用 std C++ 实现,结合 std::thread、std::queue、std::mutex 和 std::condition_variable 来实现一个简易的线程池,处理异步消息
线程池的核心功能使用多个工作线程从队列中提取任务并执行。支持动态添加任务。线程池的安全性使用std::mutex和确保多线程环境下的任务队列操作是线程安全的。灵活性可以通过添加任意符合签名的任务。优雅关闭使用stopFlag和条件变量,确保线程池能正确地通知和关闭所有工作线程。运行程序后,您将在控制台看到任务被分配到不同线程执行的日志输出。
2024-12-11 17:02:37
285
原创 Windows 上,消息队列怎么实现?
下面是一个使用C++ STL的std::queuestd::mutex和实现的简单消息队列。// 消息队列类public:// 向队列中添加消息// 通知消费者有新消息// 从队列中获取消息(阻塞式)T pop() {});// 等待队列非空private:// 消息队列// 互斥锁// 条件变量// 消费者线程// 获取消息// 生产者线程。
2024-12-11 16:46:25
989
原创 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
原创 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
763
原创 QT combox 前缀匹配
通过使用QCompleter,你可以轻松实现QComboBox的前缀匹配功能,让用户在输入时快速筛选出匹配的选项。这样可以提升用户体验,尤其是在选项较多的情况下。
2024-10-01 16:58:21
565
原创 Exception thrown at 0x00007FFC45507C1D (mfc140ud.dll) in InsertUnitPart.exe: 0xC0000005: Access viol
Buildseccessful解决办法:Unicode -> No Set。
2024-10-01 16:58:02
1015
原创 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
原创 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
113
原创 CApplication is from CATIA,>> class CApplication : public COleDispatchDriver
Given that。
2024-09-11 09:49:42
619
原创 CApplication * q_pCatiaApp; Is that setence correct? if (pUnk->QueryInterface(__uuidof(CApplication)
pUnk。
2024-09-11 09:48:45
744
原创 In Vs 2022, Add new Item, Add Class From Typelib. Then, generate the CApplicatoin.h. Then use theCAp
tlb。
2024-09-11 09:47:06
458
原创 转:Visual Studio 中文乱码问题,如何解决?
(99+ 封私信 / 80 条消息) Visual Studio 中文乱码问题,如何解决? - 知乎 (zhihu.com)
2024-08-26 20:57:45
140
原创 转:windows在安装了Git后,电脑里所有cpp文件全都变成GB2312格式了
坑的一.......... windows在安装了Git后,电脑里所有cpp文件全都变成GB2312格式了_git 配置编码格式gb2312-CSDN博客
2024-08-26 20:54:09
152
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人