随笔分类 - Qt
摘要:实现思路:把QCheckBox嵌入式到一个水平布局中 1 QWidget *widget; 2 QHBoxLayout *hLayout; 3 QCheckBox *ckb; 4 ... 5 ckb = new QCheckBox(); 6 hLayout = new QHBoxLayout(); 7 widget = new QWidget(ui->tableWidget); 8 hLayout->addWidget(ckb); 9 hLayout->setMargin(0); // 必须添加, 否则CheckBox不能正常显示10 hLay...
阅读全文
摘要:1 #include <QString> 2 #include <QByteArray> 3 #include <QCryptographicHash> 4 #include <QFile> 5 #include <QDebug> 6 7 QByteArray getFileMd5(QString filePath) 8 { 9 QFile localFile(filePath);10 11 if (!localFile.open(QFile::ReadOnly))12 {13 qDebug() << "file
阅读全文
摘要:1. 在官网获取最新的Qt Creator与Qt库 官网:http://qt.nokia.com/ 例如: Qt Creator Binary for Windows (52MB) http://get.qt.nokia.com/qtcreator/qt-creator-win-opensource-2.2.1.exe Qt for Open Source C++ development on Windows (319MB) http://get.qt.nokia.com/qt/source/qt-win-opensource-4.7.3-mingw.exe2. 安装Qt Creat...
阅读全文
浙公网安备 33010602011771号