会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一夜梦想
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2021年6月10日
qt qwebsocket 连接wss://
摘要: if (m_url.indexOf("wss://") >= 0) { QSslConfiguration sslConfiguration = m_pWebSocket->sslConfiguration(); sslConfiguration.setPeerVerifyMode(QSslSock
阅读全文
posted @ 2021-06-10 17:05 一夜梦想
阅读(1504)
评论(0)
推荐(0)
2020年11月13日
Qt 中 QString::toStdString转std::string崩溃
摘要: 从websocket接收QString值,直接用QString::toStdString转成std::string会导致程序崩溃,如下图 解决办法: 使用 std::string str = std::string((const char *)msg.toLocal8Bit()); 进行转换
阅读全文
posted @ 2020-11-13 16:17 一夜梦想
阅读(2633)
评论(0)
推荐(0)
2020年9月7日
QT unicode QByteArray与QString互转
摘要: QByteArray array; array[0] = 0xAA; QString str = QLatin1String(array); QString str2 = QString::fromLatin1(array); qDebug() << array << str << str.toLa
阅读全文
posted @ 2020-09-07 17:30 一夜梦想
阅读(720)
评论(0)
推荐(0)
2020年7月8日
C# 封装串口通信
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO.Ports; namespace S
阅读全文
posted @ 2020-07-08 17:19 一夜梦想
阅读(923)
评论(0)
推荐(0)
QT QLocalServer服务端与node IPC通信
摘要: QT 服务端代码: .h #ifndef LOCALSERVER_H #define LOCALSERVER_H #include <QObject> #include <QtNetwork> class LocalServer : public QObject { Q_OBJECT public:
阅读全文
posted @ 2020-07-08 11:47 一夜梦想
阅读(524)
评论(0)
推荐(0)
2020年4月24日
qt 添加dll
摘要: SOURCES += \ main.cpp \ mainwindow.cpp \ xxxx.cpp HEADERS += \ mainwindow.h \ xxx/xx/xxx.h \ xxxx.h FORMS += \ mainwindow.ui DISTFILES += \ xxx/xx/xxx
阅读全文
posted @ 2020-04-24 09:28 一夜梦想
阅读(1622)
评论(0)
推荐(0)
2020年4月2日
QT5 信号槽重载
摘要: //方法1 void (QTcpSocket::*onErr)(QAbstractSocket::SocketError) = &QTcpSocket::error; connect(m_tcpClient, onErr, this, &TcpClient::onTcpError); //方法2 c
阅读全文
posted @ 2020-04-02 16:30 一夜梦想
阅读(1040)
评论(0)
推荐(0)
2019年11月15日
openCV-2.4.9 小图在大图中位置(初步接触openCV)
摘要: #include <QDebug> #define log qDebug() << "[" << __FILE__ << ":" << __LINE__ << "]" cv::Mat resImage = cv::imread(resPath); cv::Mat targetImage = cv::
阅读全文
posted @ 2019-11-15 14:20 一夜梦想
阅读(1268)
评论(0)
推荐(0)
2019年9月27日
electron使用new Worker写入文件导致浏览器崩溃
摘要: main.js worker.js
阅读全文
posted @ 2019-09-27 14:51 一夜梦想
阅读(922)
评论(2)
推荐(0)
2019年3月12日
c++ 另一种回调
该文被密码保护。
阅读全文
posted @ 2019-03-12 16:57 一夜梦想
阅读(2)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告