- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 ReadProcessMemory Types of actual and formal var parameters must be identical
转自:https://www.cnblogs.com/cb168/p/5884673.htmldelphi XE Berlin ReadProcessMemory WriteProcessMemorydelphi XE,Berlin[dcc32 Error] Unit9.pas(93): E2033 Types of actual and formal var parameters must be identicalfunction ReadProcessMemory(hProcess: THan
2021-11-17 11:12:03
738
原创 conversion from ‘QList<QByteArray>‘ to non-scalar type ‘QStringList‘ requested
conversion from ‘QList’ to non-scalar type ‘QStringList’ requested如此写,报错:QStringList tempData = textStream.readLine().split(’,’);改为,即可:QString sss = textStream.readLine();QStringList tempData = sss.split(’,’);
2021-09-06 20:45:51
1064
原创 没有exec的参与,hasPendingConnections、nextPendingConnection等失效。
没有exec的参与,hasPendingConnections、nextPendingConnection等失效。
2021-08-08 11:12:40
333
原创 QObject: Cannot create children for a parent that is in a different thread.
在子线程中new QTcpServer(this);时报错:QObject: Cannot create children for a parent that is in a different thread.(Parent is myThread(0x306bfb20), parent’s thread is QThread(0x28e2aed0), current thread is myThread(0x306bfb20)解决办法是将this去掉:new QTcpServer();原因是th
2021-08-08 09:28:38
231
转载 lzma算法分析
lzma算法分析这几天在公司主要在做压缩相关,记录一下所得。目前业界主流的压缩算法感觉并不多,好用的就Huffman,lz系列,其他的像差分编码,vlq编码,感觉只能做个数据预处理,或者一种小范围的压缩。lz系列有很多,主要有lz77 lz78 lzma,基本思想是一样的,都是一种字典编码,如,我有一段文本,里面有“abcdefgabcde”,那么后面的abcde并没有必要,可以用前面的替代,所以,其实可存储为“abcdefg65”,6代表offset,5代表length,既用距离当前位置6字节,长度
2021-07-31 16:09:18
3896
原创 qt网络学习资源链接
QT网络编程★★★QT TCP网络编程Qt获取IP地址、MAC地址等网卡信息,区分本地网卡、无线网卡和虚拟网卡TCP、UDP数据包大小的限制
2021-07-31 15:56:51
196
原创 qt file not found 原因之一
14: error: ‘…h’ file not found 原因之一。在pri中说明的cpp文件,如果其中#include 本pri定义的其它文件,则会直接以此cpp文件为基础进行寻找。在#include 文件时,可以在cpp文件所在目录下,或以此目录为基础的相对路径下,或用绝对路径指明。但如果不在此cpp文件所在目录下,也没有通过相对路径或绝对路径指明,而是希望根据pri中定义的文件来指明,则会出现这个问题。但对于引用的是其它pri定义的文件,则没有此问题。...
2021-07-31 10:26:38
6879
原创 Makefile.Debug:141: d:/qt/...._res.o] Error 1
???? error: [Makefile.Debug:141: d:/qt/…_res.o] Error 1工程中设置了icon文件,但icon图标文件不存在,导致该错误。
2021-06-14 15:46:22
932
1
原创 qt undefined reference to的原因之一
在h文件定义的函数,参数带const,而在cpp文件中实现函数时,参数没有带const。则编译时所有调用该函数的地方会报undefined reference to错误。两者修改一致就好了。如:h文件定义的函数 void Test(const int A);cpp文件定义的函数 void Test(int A);...
2021-01-10 12:42:03
2405
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人