随笔分类 -  QT

上一页 1 ··· 4 5 6 7 8 9 下一页
摘要:void MainWindow::on_action_exit_triggered(){ QString aa = QString::fromLocal8Bit("退出"); QMessageBox::information(this,aa,QString::fromLocal8Bit("确认退出吗 阅读全文
posted @ 2023-11-09 15:27 txwtech 阅读(60) 评论(0) 推荐(0)
摘要:main.cpp里面修改 #include "mainwindow.h" #include <QApplication> #include <QScreen> #include <QDesktopWidget> int main(int argc, char *argv[]) { QApplicat 阅读全文
posted @ 2023-11-09 15:09 txwtech 阅读(152) 评论(0) 推荐(0)
摘要:头文件添加: private: Ui::MainWindow *ui; QFile *qssFile; int id1,id2,id3; 构造函数中: qssFile= new QFile(":/new/qss/aa.qss",this); qssFile->open(QFile::ReadOnly 阅读全文
posted @ 2023-10-30 08:11 txwtech 阅读(57) 评论(0) 推荐(0)
摘要:阿克曼agv_Nvidia_arm_linux无法运行QT程序 在Nvidia官网寻找ARM QT creator版本 翻译 搜索 复制 阅读全文
posted @ 2023-10-08 13:44 txwtech 阅读(27) 评论(0) 推荐(0)
摘要:一、利用 ldd 命令查看程序需要的依赖库 https://blog.csdn.net/WHEgqing/article/details/130492031 Linux 环境下可以使用 ldd 命令查看可执行程序所需要的依赖库文件; 翻译 搜索 复制 阅读全文
posted @ 2023-09-28 15:25 txwtech 阅读(323) 评论(1) 推荐(0)
摘要:QT Creator的project转换成Visual Studio的project 在windows10下,运行Qt Command Prompt。 输入命令行: qmake -tp vc XXX.pro 会生成文件XXX.vcxproj Visual Studio的project转成QT Cre 阅读全文
posted @ 2023-07-09 08:49 txwtech 阅读(1751) 评论(0) 推荐(0)
摘要:Microsoft Visual Studio D:\Users\xxx\source\repos\QtWidgetsApplication1\QtWidgetsApplication1.ui无法打开文件。 确定 翻译 搜索 复制 阅读全文
posted @ 2023-04-18 22:26 txwtech 阅读(221) 评论(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 阅读(2055) 评论(0) 推荐(0)
摘要:QModbusClient *modbus_client = nullptr;//mainwindow.h:32:5: error: unknown type name 'QModbusClient',记得前置申明 阅读全文
posted @ 2023-01-10 21:41 txwtech 阅读(188) 评论(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 阅读(365) 评论(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 阅读(229) 评论(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 阅读(804) 评论(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 阅读(48) 评论(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 阅读(162) 评论(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 阅读(57) 评论(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 阅读(736) 评论(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 阅读(121) 评论(0) 推荐(0)
摘要:QT正则表达式介绍与使用 一、 QT中的QRegExp类实现了正则表达式的模式匹配。二、Qt中有两个不同类的正则表达式.- 第一类为元字符.它表示一个或多个常量表达式.- 令一类为 转义字符,它代表一个特殊字符.1) 元字符. 匹配任意单个字符.例如, 2.3 可能是2. 后面跟任意字符,再跟3^ 阅读全文
posted @ 2022-08-18 09:20 txwtech 阅读(703) 评论(0) 推荐(0)
摘要:QT学习文档资料 http://shouce.jb51.net/qt-beginning/34.html 阅读全文
posted @ 2022-08-13 21:56 txwtech 阅读(72) 评论(0) 推荐(0)
摘要:文件打开方式:file.open(QIODevice::Truncate) 枚举值 描述QIODevice::NotOpen 未打开QIODevice::ReadOnly 以只读方式打开QIODevice::WriteOnly 以只写方式打开QIODevice::ReadWrite 以读写方 阅读全文
posted @ 2022-08-13 16:02 txwtech 阅读(1177) 评论(0) 推荐(0)

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