今天研究了一下QFtp这个类,发现访问得到的文件名称中一旦出现中文,不管怎么转换编码格式,最终显示出来的始终都是乱码。由于编码错误,我写了两个函数用于互相转换编码。 一个是由正常编码转为QFTP上所谓的“乱码”的:QString _ToSpecialEncoding(const QString &I Read More
posted @ 2016-06-20 04:40 findumars Views(1603) Comments(0) Diggs(0)
转自:http://my.oschina.net/voler/blog/345722 目录[-] 0. 源代码下载地址 1. 简单文件拖放 2. 复杂文件拖放 3. 通过按钮来完成列表数据的转移 4. 通过拖放文件来达到效果 1. 简单文件拖放 1. 一般情况下,编辑框可以直接接收到文件名 2. 程 Read More
posted @ 2016-06-20 04:38 findumars Views(19373) Comments(2) Diggs(0)
QT5 发布程序,太庞大了,QT4下,基本的也就20M左右 platforms目录是 对应X:\Qt\Qt5.3.2\5.3\mingw482_32\plugins\platforms 下的qminimal.dll、qwindows.dll 这两个dll是必须的 要不然运行会报错的。 http:// Read More
posted @ 2016-06-20 04:37 findumars Views(571) Comments(0) Diggs(0)
[cpp] view plain copy [cpp] view plain copy 根据QT4文档的说明,windows下支持 "windows", "motif", "cde", "plastique" and "cleanlooks" 而QT5文档说明,windows下只支持 "window Read More
posted @ 2016-06-20 04:36 findumars Views(2275) Comments(0) Diggs(0)
] view plain copy ] view plain copy [cpp] view plain copy .h文件 #include <QSettings> #include <qt_windows.h> HKEY hKey; LPCWSTR subkey; wchar_t keyname Read More
posted @ 2016-06-20 04:34 findumars Views(6929) Comments(0) Diggs(0)