# Python嵌入Qt6实现数据自定义存表格 **Repository Path**: arthur_net/PythonToQt6 ## Basic Information - **Project Name**: Python嵌入Qt6实现数据自定义存表格 - **Description**: 将Python嵌入Qt6使用 - **Primary Language**: C++ - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-13 - **Last Updated**: 2026-06-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: Qt6, Python, XML ## README Based on the provided code map, I can analyze this project structure and create a comprehensive README.md. # PythonToQt6 A Qt6-based desktop application that integrates Python scripting with Qt for device control and communication. ## 项目简介 这是一个基于 Qt6 的桌面应用程序,通过 Python 与 Qt 的集成实现对设备的控制与通信。应用采用 Socket 网络通信、XML 命令协议、Python 脚本执行等技术,实现了与远程设备的交互控制功能。 ## 功能特性 - **Socket 通信**: 基于 TCP 的Socket连接,支持自动重连 - **命令协议**: XML 格式的命令解析与封装 - **Python 集成**: 内置 Python 环境管理,支持 Python 脚本执行 - **配置管理**: 动态加载和保存配置文件 - **日志系统**: 完整的数据交互日志记录 - **系统托盘**: 支持最小化到系统托盘运行 - **图像处理**: 支持图像列表显示与交互 ## 目录结构 ``` ├── Command/ # 命令解析模块 │ ├── ParseCommand.cpp/h │ └── cmd.cpp/h ├── Expansion/ # 扩展功能模块 │ ├── InterfaceConfig.cpp/h │ └── PythonTools.cpp/h ├── LogTools/ # 日志工具模块 │ └── LogHelper.cpp/h ├── Sockets/ # 网络通信模块 │ └── LinkTools.cpp/h ├── basebox.cpp/h # 主窗口类 ├── basebox.ui # Qt UI 文件 ├── main.cpp # 程序入口 └── UpperControlExample.pro # qmake 项目文件 ``` ## 技术栈 - **Qt 6**: 图形界面框架 - **Python**: 脚本执行环境 - **TCP Socket**: 网络通信 - **XML**: 命令协议格式 ## 构建要求 - Qt 6.x - Python 3.x - 支持 C++11 的编译器 ## 许可证 本项目具体许可证请查看仓库中的 LICENSE 文件。