随笔分类 -  QT

上一页 1 ··· 5 6 7 8 9
摘要:#include "mainwindow.h" #include "ui_mainwindow.h" #include <QMessageBox> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::M 阅读全文
posted @ 2022-07-25 22:47 txwtech 阅读(317) 评论(0) 推荐(0)
摘要:QT操作文件写入文件 #include "File_Operation.h" #include "qfile.h" #include <QDebug> #include <QDateTime> File_Operation::File_Operation() { } File_Operation:: 阅读全文
posted @ 2022-07-25 21:14 txwtech 阅读(1854) 评论(0) 推荐(0)
摘要:*新建项目:ctrl + n *运行项目:ctrl + r *构建项目:ctrl + b *改变字体大小:ctrl + 滚轮 *代码对齐大括号对齐:ctrl + a,ctrl + i *跳转到上一行:ctrl + shift + enter *跳转到下一行:ctrl + enter *从头文件跳转到 阅读全文
posted @ 2022-07-25 08:12 txwtech 阅读(749) 评论(0) 推荐(0)
摘要:QT获取本机IP方法 QString Server::GetLocalIP() { QList<QHostAddress> list=QNetworkInterface::allAddresses(); foreach(QHostAddress address,list) { if(address. 阅读全文
posted @ 2022-07-23 16:05 txwtech 阅读(1268) 评论(0) 推荐(0)
摘要:QT信号与槽手动与自动关联讲解 阅读全文
posted @ 2022-07-23 15:29 txwtech 阅读(94) 评论(0) 推荐(0)
摘要:QT执行文件打包方法 QT打包快捷生成依赖文件dll的方法 https://txwtech.blog.csdn.net/article/details/113646295 2. 目录: 例:D:\Qt\Qt5.14.1\5.14.1\mingw73_64,目录下几个文件拷贝到exe相同目录 libg 阅读全文
posted @ 2022-07-07 08:01 txwtech 阅读(195) 评论(0) 推荐(0)
摘要:配置方法与windows一样 https://www.cnblogs.com/txwtech/p/16403907.html windows项目拷贝到linux下运行时,除了以上配置,更改项目构建目录就可以了。 阅读全文
posted @ 2022-07-01 14:07 txwtech 阅读(303) 评论(0) 推荐(0)
摘要:1.右键选择需要布局的控件 2.选中后,右键点击,选择布局,垂直布局 3.然后右侧的控件相同的操作 4.空白处右键-布局-栅格布局 5.点击最大化测试 参考: https://www.cnblogs.com/emouse/archive/2013/05/19/3087708.html 阅读全文
posted @ 2022-06-28 22:55 txwtech 阅读(3248) 评论(0) 推荐(0)
摘要:mainwindow.cpp:77:44: error: member access into incomplete type 'QTcpSocket'qtcpserver.h:55:7: note: forward declaration of 'QTcpSocket' 添加:#include < 阅读全文
posted @ 2022-06-28 21:10 txwtech 阅读(450) 评论(0) 推荐(0)
摘要:Signal Received <p>The inferior stopped because it received a signal from the operating system.<p><table><tr><td>Signal name : </td><td>SIGSEGV</td></ 阅读全文
posted @ 2022-06-28 18:40 txwtech 阅读(187) 评论(0) 推荐(0)
摘要:QT更改默认构建目录debug与release-生成的目录放在项目的文件夹内部 参考: https://jingyan.baidu.com/article/6181c3e0b9d170152ef153af.html 原来的默认设置: ../%{JS: Util.asciify("build-%{Cu 阅读全文
posted @ 2022-06-23 08:28 txwtech 阅读(1251) 评论(0) 推荐(0)
摘要:QT 数字转字符串形式 int number = 123;QString numberStr = QString::number(number); // QString int_to_String_port=tr("%1").arg(obj->peerPort());int port =8868; 阅读全文
posted @ 2022-06-22 08:42 txwtech 阅读(876) 评论(0) 推荐(0)
摘要:Qt创建右键快捷菜单无法触发customContextMenuRequested()信号 在为listWidget组件添加右键快捷菜单时,已经编写了信号customContextMenuRequested()的响应槽函数,但是在该组件上点击右键并没有触发该信号 原因在于没有添加右键菜单策略,也就是说 阅读全文
posted @ 2022-06-21 08:02 txwtech 阅读(323) 评论(0) 推荐(0)
摘要:桌面创建tt1_QT.desktop文件,打开后复制如下内容,Exec最后面的tt2是QT 编译后,release文件夹的可执行文件 [Desktop Entry] Type=Application Name=tt2_QT GenericName=tt2 Comment=tt2 Exec=/home 阅读全文
posted @ 2022-05-20 23:25 txwtech 阅读(366) 评论(0) 推荐(0)
摘要:linuxQT安装方法 https://blog.csdn.net/qq_45662588/article/details/121220564 配置 https://blog.csdn.net/xujianjun229/article/details/118457517 阅读全文
posted @ 2022-05-20 14:54 txwtech 阅读(95) 评论(0) 推荐(0)
摘要:http://c.biancheng.net/view/3851.html https://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/5.9/5.9.0/ 阅读全文
posted @ 2022-05-20 14:53 txwtech 阅读(502) 评论(0) 推荐(0)
摘要:免费嵌入式QT开发视频教程 https://pan.baidu.com/s/1bprhJ2Z QT初级到高级编程视频教程--丁林松.rarhttp://www.jisoupan.com/share/2040847.html https://pan.baidu.com/s/1pKwnk3D—————— 阅读全文
posted @ 2020-01-15 15:56 txwtech 阅读(711) 评论(0) 推荐(0)
摘要:Qt Creator快速入门(第3版) [霍亚飞著] 完整pdf扫描版[92MB] 附随书源码,资源收集于网络,供参考 https://pan.baidu.com/s/1pLQdIUR kjaf http://www.jisoupan.com/share/2040847.html QT初级到高级编程 阅读全文
posted @ 2020-01-10 10:05 txwtech 阅读(954) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9