随笔分类 - QT
摘要:先emit发送,后connect连接,将出现问题。 https://txwtech.blog.csdn.net/article/details/138340410 翻译 搜索 复制
阅读全文
摘要:stringlistmodel.h:14:32: Member initializer 'stringList' does not name a non 报错信息提示在stringlistmodel.h文件的第14行第32个字符处,初始化成员stringList没有指向一个非静态成员。 解释: 在C
阅读全文
摘要:更改UI界面后,保存UI界面; 返回VS中,找到UI界面文件,右击->编译;或者选中编辑的UI,按下ctrl+F7 选择项目,重新扫描解决方案,不行就多执行一次 翻译 搜索 复制
阅读全文
摘要:取消勾选,点击右下角修改。卸载后,再次选中,点击修改,再次安装 57:00: 为项目untitled4执行步骤 ...15:57:00: 配置没有改变, 跳过 qmake 步骤。15:57:00: 正在启动 "D:\Qt\Qt5.14.1\Tools\QtCreator\bin\jom.exe" D
阅读全文
摘要:编译过程中出现的问题:① 找不到rc.exe(使用msvc 2015 64-bit 和 msvc 2017 64-bit时可能会出现) 解决方法: 安装win10SDK: 安装Windows10 SDKhttps://developer.microsoft.com/en-us/windows/dow
阅读全文
摘要:https://blog.csdn.net/weixin_43763292/article/details/129632808 安装Windows10 SDKhttps://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
阅读全文
摘要:注释信息:/* 到 */ 之间汉字前后加空格 /* 可以读取绝对路径下xxx的第一张图片 */D:\QT_Project\opencv_t1\mainwindow.cpp:98: error: C3872: “0xe1bc”: 此字符不允许在标识符中使用 QMessageBox::informati
阅读全文
摘要:linux发送与接收都转码utf-8: tcpClient ->write( send_msg.toUtf8());//解决乱码,发送转码 接收: QByteArray buffer = tcpClient->readAll(); if(!buffer.isEmpty()) { // ui->pla
阅读全文
摘要:QT5 的TCP和UDP 网络通信 <QTcpSocket> 首先需要 在项目中引入网络模块,pro文件中添加 QT += core gui network #include <QTcpServer> #include <QTcpSocket> 翻译 搜索 复制
阅读全文
摘要:void MainWindow::on_action_exit_triggered(){ QString aa = QString::fromLocal8Bit("退出"); QMessageBox::information(this,aa,QString::fromLocal8Bit("确认退出吗
阅读全文
摘要:main.cpp里面修改 #include "mainwindow.h" #include <QApplication> #include <QScreen> #include <QDesktopWidget> int main(int argc, char *argv[]) { QApplicat
阅读全文
摘要:头文件添加: private: Ui::MainWindow *ui; QFile *qssFile; int id1,id2,id3; 构造函数中: qssFile= new QFile(":/new/qss/aa.qss",this); qssFile->open(QFile::ReadOnly
阅读全文
摘要:阿克曼agv_Nvidia_arm_linux无法运行QT程序 在Nvidia官网寻找ARM QT creator版本 翻译 搜索 复制
阅读全文
摘要:一、利用 ldd 命令查看程序需要的依赖库 https://blog.csdn.net/WHEgqing/article/details/130492031 Linux 环境下可以使用 ldd 命令查看可执行程序所需要的依赖库文件; 翻译 搜索 复制
阅读全文
摘要:QT Creator的project转换成Visual Studio的project 在windows10下,运行Qt Command Prompt。 输入命令行: qmake -tp vc XXX.pro 会生成文件XXX.vcxproj Visual Studio的project转成QT Cre
阅读全文
摘要:Microsoft Visual Studio D:\Users\xxx\source\repos\QtWidgetsApplication1\QtWidgetsApplication1.ui无法打开文件。 确定 翻译 搜索 复制
阅读全文
摘要:Qt默认有对应VS版本,在下载对应VS插件的时候心里要有个数,官方默认提供的是原配的插件,如果想要Qt4.8+VS2015的插件,需要自行编译。一般来说是: Qt4.8原配VS2010; Qt5.6原配VS2013; Qt5.9原配VS2015; Qt5.12原配VS2017; Qt5.15原配VS
阅读全文
摘要:QModbusClient *modbus_client = nullptr;//mainwindow.h:32:5: error: unknown type name 'QModbusClient',记得前置申明
阅读全文
摘要:QT_CONFIG宏是什么作用? #if QT_CONFIG(modbus_serialport) //是否支持modbus_serialport int parity = QSerialPort::EvenParity; int baud = QSerialPort::Baud19200; int
阅读全文
摘要:dialogsetting.h:17:5: error: division by zero in preprocessor expressionqglobal.h:86:30: note: expanded from macro 'QT_CONFIG' 包含头文件名: #include <QtSer
阅读全文