随笔分类 -  QT

上一页 1 ··· 4 5 6 7 8 9 下一页
摘要:Microsoft Visual Studio D:\Users\xxx\source\repos\QtWidgetsApplication1\QtWidgetsApplication1.ui无法打开文件。 确定 翻译 搜索 复制 阅读全文
posted @ 2023-04-18 22:26 txwtech 阅读(204) 评论(0) 推荐(0)
摘要:Qt默认有对应VS版本,在下载对应VS插件的时候心里要有个数,官方默认提供的是原配的插件,如果想要Qt4.8+VS2015的插件,需要自行编译。一般来说是: Qt4.8原配VS2010; Qt5.6原配VS2013; Qt5.9原配VS2015; Qt5.12原配VS2017; Qt5.15原配VS 阅读全文
posted @ 2023-04-18 21:58 txwtech 阅读(1861) 评论(0) 推荐(0)
摘要:QModbusClient *modbus_client = nullptr;//mainwindow.h:32:5: error: unknown type name 'QModbusClient',记得前置申明 阅读全文
posted @ 2023-01-10 21:41 txwtech 阅读(181) 评论(0) 推荐(0)
摘要:QT_CONFIG宏是什么作用? #if QT_CONFIG(modbus_serialport) //是否支持modbus_serialport int parity = QSerialPort::EvenParity; int baud = QSerialPort::Baud19200; int 阅读全文
posted @ 2023-01-06 10:23 txwtech 阅读(351) 评论(0) 推荐(0)
摘要:dialogsetting.h:17:5: error: division by zero in preprocessor expressionqglobal.h:86:30: note: expanded from macro 'QT_CONFIG' 包含头文件名: #include <QtSer 阅读全文
posted @ 2023-01-04 21:16 txwtech 阅读(219) 评论(0) 推荐(0)
摘要:mainwindow.cpp:9:78: error: incomplete type 'QDialog' named in nested name specifierqwindowdefs.h:55:7: note: forward declaration of 'QDialog' 头文件: Di 阅读全文
posted @ 2022-12-28 21:59 txwtech 阅读(586) 评论(0) 推荐(0)
摘要:#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWind 阅读全文
posted @ 2022-10-27 22:01 txwtech 阅读(39) 评论(0) 推荐(0)
摘要:QT src5_3a编辑框的框架-文本块-字体设置的操作 #ifndef MAINWINDOW5_3_H #define MAINWINDOW5_3_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow 阅读全文
posted @ 2022-09-02 14:38 txwtech 阅读(156) 评论(0) 推荐(0)
摘要:#include "mainwindow5_3.h" #include "ui_mainwindow5_3.h" #include <QTextFrame> MainWindow5_3::MainWindow5_3(QWidget *parent) : QMainWindow(parent) , u 阅读全文
posted @ 2022-09-01 15:46 txwtech 阅读(49) 评论(0) 推荐(0)
摘要:11:37:57: 为项目paddleOCRDemo执行步骤 ...11:37:57: 配置没有改变, 跳过 qmake 步骤。11:37:57: 正在启动 "D:\Qt\Qt5.14.2\Tools\QtCreator\bin\jom\jom.exe" D:\Qt\Qt5.14.2\Tools\Q 阅读全文
posted @ 2022-08-28 11:41 txwtech 阅读(715) 评论(0) 推荐(1)
摘要:https://www.jb51.net/books/523734.html Qt及Qt Quick开发实战精解 https://pan.baidu.com/s/1nvFTcCx etdf 阅读全文
posted @ 2022-08-22 14:24 txwtech 阅读(116) 评论(0) 推荐(0)
摘要:QT正则表达式介绍与使用 一、 QT中的QRegExp类实现了正则表达式的模式匹配。二、Qt中有两个不同类的正则表达式.- 第一类为元字符.它表示一个或多个常量表达式.- 令一类为 转义字符,它代表一个特殊字符.1) 元字符. 匹配任意单个字符.例如, 2.3 可能是2. 后面跟任意字符,再跟3^ 阅读全文
posted @ 2022-08-18 09:20 txwtech 阅读(679) 评论(0) 推荐(0)
摘要:QT学习文档资料 http://shouce.jb51.net/qt-beginning/34.html 阅读全文
posted @ 2022-08-13 21:56 txwtech 阅读(63) 评论(0) 推荐(0)
摘要:文件打开方式:file.open(QIODevice::Truncate) 枚举值 描述QIODevice::NotOpen 未打开QIODevice::ReadOnly 以只读方式打开QIODevice::WriteOnly 以只写方式打开QIODevice::ReadWrite 以读写方 阅读全文
posted @ 2022-08-13 16:02 txwtech 阅读(1138) 评论(0) 推荐(0)
摘要:#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 阅读(314) 评论(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 阅读(1841) 评论(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 阅读(728) 评论(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 阅读(1253) 评论(0) 推荐(0)
摘要:QT信号与槽手动与自动关联讲解 阅读全文
posted @ 2022-07-23 15:29 txwtech 阅读(93) 评论(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 阅读(177) 评论(0) 推荐(0)

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