
QT
qq_31776303
这个作者很懒,什么都没留下…
展开
-
Ubuntu下QT5连接mysql报驱动未加载
背景:Ubuntu16+QT5.10问题描述:Qt程序中使用了数据库,使用qtcreator进行编译运行都没有问题,但是在使用linuxdeploy进行打包的时候报错:但是通过查找发现自己的环境中有libmysqlclient.so.20通过软连接等方法都不管用,因此就下载一个libmysqlclient.so.18:(1)下载链接:5.6.25-0ubuntu1 : libmysqlclient18 : amd64 : Xenial (16.04) : Ubuntu或者:转载 2021-10-09 14:24:41 · 318 阅读 · 2 评论 -
Qt:正确判断文件、文件夹是否存在的方法
QFileInfofi("C:/123");//目录存在 qDebug()<<fi.isFile();//false qDebug()<<fi.isDir();//true qDebug()...转载 2019-09-02 09:19:01 · 2120 阅读 · 0 评论 -
开源组态软件
原文:https://blog.youkuaiyun.com/libaineu2004/article/details/797157371、PC端C#https://github.com/GavinYellow/SharpSCADAhttps://github.com/AlexDovgan/FreeSCADAhttp://www.cnblogs.com/evilcat/Qth...转载 2019-07-23 10:18:14 · 4138 阅读 · 1 评论 -
使用QT 做一个Anroid mqtt client
示例代码地址:https://download.youkuaiyun.com/download/qq_31776303/12054893首先下载qmtthttps://github.com/emqtt/qmqtt解压后将目录qmqtt-master\src\mqtt 下的 .h 和 .cpp 文件全部拷贝到当前工程目录如下图mainwindow.h#ifndef M...原创 2019-04-03 14:20:04 · 1304 阅读 · 4 评论 -
QT编译 has modification times xxxxx s in the future..
find /your/dir -type f -exec touch {} +转载 2019-03-13 10:10:43 · 563 阅读 · 0 评论 -
QT调试Linux Core文件
relase 版 在pro文件下添加QMAKE_CC += -gQMAKE_CXX += -gQMAKE_LINK += -g然后进到目录用 qmake, 然后make进行编译原创 2019-01-14 21:37:27 · 884 阅读 · 0 评论 -
Qt之操作Excel
原文地址:http://blog.sina.com.cn/s/blog_a6fb6cc90101gv2p.html Visual Basic for Applications(VBA)是一种Visual Basic的一种宏语言,主要能用来扩展Windows的应用程式功能,特别是Microsoft Office软件。也可说是一种应用程式视觉化的Basic Script。1994年发行的Excel 5...转载 2018-05-05 10:52:43 · 163 阅读 · 0 评论 -
QT CRC校验
quint16 MainWindow::crc16ForModbus(const QByteArray &data, int index, int len){ static const quint16 crc16Table[] = { 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, ...转载 2018-04-26 18:35:50 · 2253 阅读 · 0 评论 -
QString去掉所有空格
gateway.remove(QRegExp("\\s"));转载 2018-05-03 10:11:50 · 8685 阅读 · 1 评论 -
QCustomPlot实现实时动态曲线
原文地址:http://blog.chinaunix.net/uid-11829250-id-5750296.htmlQt4中,可以使用QCustompPlot来绘制曲线,QCustompPlot是一个第三方工具,可以到官网下载:http://www.qcustomplot.com/index.php/download这里实现一个实时动态曲线图,用随机数作为实时数据,程序运行结果如下:主机环境:f...转载 2018-03-01 11:32:37 · 3361 阅读 · 3 评论