QT Linux下QFileDialog自动添文件后缀
摘要:QString strFileName = QFileDialog::getSaveFileName(this, tr("保存文件"),".", tr("测点文件(*.csv)")); if (strFileName.isEmpty()) { return; } //针对linux处理, 若后缀为空
阅读全文
Qt5.14.2连接Oracle数据库
摘要:引自:https://blog.csdn.net/be_quiet_endeavor/article/details/90342203?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1
阅读全文
QT编译Boost,并测试
摘要:引自:https://blog.csdn.net/ninglu1989/article/details/82425595 一、编译boost源码为静态库 1>将你的Qt的工具目录(有g++.exe)设置环境变量。(我的是 F:\Qt592\Tools\mingw530_32\bin,要依据实际情况)
阅读全文
C++接口库调用方法(QT)
摘要:#ifndef ICONNECT_H#define ICONNECT_H #include <QtCore/qglobal.h>#if defined(MYDLL_LIBRARY)# define MYDLL_EXPORT Q_DECL_EXPORT#else# define MYDLL_EXPOR
阅读全文
QFutureWatcher+QtConcurrent使用
摘要:#ifndef CONCURRENTTASKMGR_H#define CONCURRENTTASKMGR_H #include <QObject>#include <QVariant>#include <QReadWriteLock>#include <QFutureWatcher> class C
阅读全文