- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 C++字符串格式化
C++字符串格式化源代码:/********************************************************* 函数名称: format* 函数功能: 全局功能函数, 格式化拼接字符串* 输入参数: format 拼接格式* 输出参数: 无* 返 回 值: std::string 格式化后的字符串********************************************************/std::string format(const
2020-06-19 15:27:33
749
原创 Qt数字与字母混合的字符串自增
Qt实现数字和字母混合的字符串自增有时候想要一串字母和数字混合的字符串能够以1或者n的增量不断增加,下面代码可以实现此功能,如果有bug,欢迎指正:#define isNum(str) QRegExp(QString("[0-9]{%1}" ).arg(str.size())).exactMatch(str)#define isLower(str) QRegExp(QString("[a-z]{%1}" ).arg(str.si
2020-05-20 14:21:50
2198
原创 Qt/C++ Windows下获取多张网卡的IP及网卡名称等信息
Qt/C++ Windows下获取多张网卡的IP及网卡名称等信息void guidFormString(const char *pszGuid, GUID &guid) { if (pszGuid == nullptr) return; int temp[3] = {0, 0, 0}; sscanf_s(pszGuid, "%08x-%4hx-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", &(guid.Data1), &
2020-05-09 15:06:27
2024
原创 Qt Windows下根据GUID获取设备名称
Qt Windows下根据GUID获取设备名称void guidFormString(const char *pszGuid, GUID &guid) { if (pszGuid == nullptr) return; int temp[3] = {0, 0, 0}; sscanf_s(pszGuid, "%08x-%4hx-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", &(guid.Data1), &(guid.Dat
2020-05-09 14:56:15
1525
1
原创 Qt线程实现的一个简单日志打印类
Qt线程实现的一个简单日志打印类MyLog.h#ifndef MYLOG_H#define MYLOG_H#include <qglobal.h>#include <qstring.h>#include <thread>#include <QObject>#include <QQueue>#include <QMutex>#include <QFile>#ifdef WIN32 #pragma
2020-05-09 14:25:24
1000
原创 Qt非阻塞延时
有时候想要等待一会再往下执行代码,下面这一段可以实现对当前代码阻塞,对其它代码不阻塞void delay(int ms) {QTime tm;tm.restart();while (tm.elapsed() < ms) {QCoreApplication::processEvents();}}
2020-05-09 14:09:40
588
原创 C# C++ Qt调用CodeSoft打标签(源码+教程)免费下载
C# C++ Qt调用CodeSoft打标签(源码+教程)免费下载最近在编写有关于调用codeSoft打印的问题,整理了相关代码和教程。C#调用CodeSoft打印标签,C++对C#进行封装提供QT(vs2015)调用。源码下载1(免费):https://www.chengxuunion.com/program/programdetail/detail/program_443736809718095872.html源码下载2:https://download.youkuaiyun.com/download/u0
2020-05-09 11:49:19
1584
手把手教你codesoft二次开发.txt
2020-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人