QT
Jeff-Chen
这个作者很懒,什么都没留下…
展开
-
connect时使用Qt::DirectConnection,导致多线程时UI线程还是卡顿
如果槽函数是耗时会导致UI假死的任务,connect时不能使用Qt::DirectConnection。该参数The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.槽函数将会在信号线程中执行,所以还是会导致UI卡顿enum Qt::ConnectionTypeThis enum describes the types of connection原创 2020-10-27 15:01:44 · 1448 阅读 · 0 评论 -
QT [Makefile:2248: ui_mainwindow.h] Error 1
由提示可知在Makefile:2248行编译出错,/opt/Qt5.12.3/5.12.3/gcc_64/bin/uic ../xxxx/mainwindow.ui -o ui_mainwindow.h这里是由mainwindow.ui生成ui_mainwindow.h出错.打开mainwindow.ui发现,原来是由于git 克隆时有冲突,修改了该文件,只要将该文件里由于冲突而插入的信息去掉即可...原创 2020-08-19 18:07:58 · 2878 阅读 · 0 评论 -
ubuntu QT https
参考链接搭建openssl开发环境https://blog.csdn.net/skytering/article/details/102976185相关问题解决方法https://blog.csdn.net/skytering/article/details/102976185注意事项在下载的版本需要与下面代码打印出的版本一致,否则还是会提示错误bool bSupp = QSslSocket::supportsSsl();QString buildVersion = QSslSocket::原创 2020-08-15 10:02:56 · 315 阅读 · 0 评论 -
自定义类使用信号和槽
这里写目录标题类的声明构造函数信号连接到槽函数类的声明要使用信号和槽,需要继承QObject类.否则会提示connect函数错误class myclass: public QObject{Q_OBJECTpublic:myclass(QObject * parent = nullptr);private SLOT:void my_slot(void *);}构造函数myclass::my(QObject * parent):QObject(parent){}信号连接到槽函数信号原创 2020-08-14 17:40:20 · 621 阅读 · 0 评论 -
QT中函数指针数组
QT中函数指针数组自定义类函数定义函数指针数组使用自定义类class myclass{typedef void (myclass::*Funs)(QJsonObject *jsonObject,void *para);/函数声明/void fun1(QJsonObject *jsonObject,void *para);void fun2(QJsonObject *jsonObject,void *para);void fun3(QJsonObject *jsonObject,void *pa原创 2020-08-14 17:21:49 · 1775 阅读 · 0 评论 -
qDebug用法
https://blog.csdn.net/four_p/article/details/79062742转载 2019-09-28 18:12:20 · 402 阅读 · 0 评论