获取大文件 MD5 改良版

admin | C++, Qt Gui | 2013-05-27
C++ QString Examination::getFileMd5( const QString& strFilePath ) { QFile localFile(strFilePath); if (!localFile.open(QFile::ReadOnly)) { qDebug() << "file open error."; return 0; } QCryptographicHash ch(QCryptographicHash::Md5); quint64 totalBytes = 0; quint64 byte... [阅读全文]
ė2,986 浏览数 6没有评论 0

获取文件MD5码(支持大文件)

admin | Qt Gui | 2013-05-27
C++ #include <QString> #include <QByteArray> #include <QCryptographicHash> #include <QFile> #include <QDebug> QByteArray getFileMd5(QString filePath) { QFile localFile(filePath); if (!localFile.open(QFile::ReadOnly)) { qDebug() &... [阅读全文]
ė5,166 浏览数 6没有评论 0

QT用API获得文件的版本信息

admin | Qt Gui, win32 | 2013-05-27
C++ #include<windows.h> #include<winver.h> ///引入Version.lib库 QString InfomationCollect::GetFileVertion( QString fullName ) { DWORD dwLen = 0; char* lpData=NULL; BOOL bSuccess = FALSE; QString fileInfomation; //获得文件基础信息 //-----------------------------------------... [阅读全文]
ė2,739 浏览数 6没有评论 0

qt特效按鈕QPushButton

admin | Qt Gui | 2013-05-22
C++ //Declaration #include <QtCore> #include <QtGui> class AeroButton : public QPushButton { Q_OBJECT public: AeroButton(QWidget * parent = 0); AeroButton(const QString & text, QWidget * parent = 0); AeroButton(const QIcon & icon, const QString & t... [阅读全文]
ė3,178 浏览数 6没有评论 0

Qt显示网络图片

admin | Qt Gui | 2013-05-17
main.h C++ #include<QtGui/QtGui> #include"CImage.h" int main(int argc,char*argv[]) { QApplication app(argc,argv); QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); CImage dlg; return dlg.exec(); } 12345678910 #include<QtG... [阅读全文]
ė3,752 浏览数 6没有评论 0

How can I insert a checkbox into the header of my view?

admin | Qt Gui | 2013-05-16
C++ //class MyHeader : public QHeaderView //myheader.h #ifndef MYHEADER_H #define MYHEADER_H #include #include //enum{CHECKBOX_ON,CHECKBOX_NOCHANGE,CHECKBOX_OFF}; class MyHeader : public QHeaderView { Q_OBJECT public: MyHeader(Qt::Orientation orientation,QWidget *parent); ~MyH... [阅读全文]
ė3,627 浏览数 6没有评论 0

Qt精简编译方法总结

admin | Qt Gui | 2013-05-15
Qt如果采取默认编译安装,一般都要占用上G的空间。当初自己不想涉及Qt的一个原因,就是嫌它太臃肿了。近期通过反复对比,发现Qt还是有着很大潜力的,于是,决定好好学习一下,就有了这篇精简编译的笔记。   修改编译选项(mkspecs/win32-msvc2010/qmake.conf): QMAKE_CFLAGS_RELEASE    = -O2 -Os -MD QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2... [阅读全文]
ė2,592 浏览数 6没有评论 0

如何将QString转换为char *或者相反

admin | Qt Gui | 2013-05-12
先看看官方是如何说的: How can I convert a QString to char* and vice versa ?(trolltech) Answer: In order to convert a QString to a char*, then you first need to get a latin1 representation of the string by calling toLatin1() on it which will return a QByteArray. Then call data() on the QByteArray to get a pointer to the data ... [阅读全文]
ė2,272 浏览数 6没有评论 0

P2P后台终结者源码.分享QT+WIN SDK实现.自动扫描后台关闭P2P后台进程

admin | Qt Gui | 2013-05-06
C++ #ifndef KILLPROCESS_H #define KILLPROCESS_H #include <QObject> #include <QThread> #include <QLibrary> #include <QFile> #include <QDataStream> #include <QTime> #include <QVector> //==================================================================... [阅读全文]
ė9,559 浏览数 6没有评论 0

poppler windows 编译 详解 心得

admin | Qt Gui | 2013-04-15
poppler:Poppler is a PDF rendering library based on the xpdf-3.0 code base. 是一个基于xpdf的开源库,功能很强大 请下载 poppler-0.12.4 版本,最新的版本比这个高,但是没有windows下的编译,查询日期20101028 poppler库编译需要 freetype231  jpeg  zlib的lib文件 找到后放在poppler-0.12.4\ext 里的各自文件夹下面 网上实在找不到的话,就下我... [阅读全文]
ė4,864 浏览数 6没有评论 0

Ɣ回顶部

无觅相关文章插件,快速提升流量