网友收藏 文章浏览阅读1.4k次,点赞2次,收藏3次。在Qt中我们经常通过重写下面两种虚函数来实现按键事件virtual void keyPressEvent(QKeyEvent *event);bool eventFilter(QObject* watched, QEvent* event);但是有时候会遇到无法触发的情况(特别是QWidget,QLabel)......
2023-11-12 06:07 阅读
阅读全文 网友收藏 文章浏览阅读866次,点赞15次,收藏13次。本章节会给大家带来基于文本编辑器 Easy Word V1.2开发升级到Easy Word V1.3开发的解析。在编写包含格式设置的文本编辑程序时,经常用到的 Qt 类有 QTextEdit、 QTextDocument、QTextListFormat 、 QTextF......
2024-01-25 09:30 阅读
阅读全文 网友收藏 文章浏览阅读590次。windeployqt.exe这个工具大家都知道了,但使用起来有个小坑需要避过。首先如果你是使用QtCreator工具需要检查你的你使用的什么版本来编译的程序,博主未注意使用的MinGW来编译的程序,直接进到需要打包的程......
2023-11-12 00:13 阅读
阅读全文 网友收藏 Template for a Qt/QML application with batteries included: GitHub C.I. for your QML app; automated gui testing with Xvfb; automatic code-format checks and more. Compiles for Desktop and Mobile (Linux, Mac, Windows, and Android). - GitHub - 219-design/qt-qml-project-template-with-ci: Template for a Q......
2023-11-11 23:00 阅读
阅读全文 网友收藏 文章浏览阅读1.9w次,点赞8次,收藏18次。最近在学GUI编程——PyQt5结果第一个程序就出现了问题说qt_由于没有q平台,此应用程序无法启动...
2023-11-12 00:51 阅读
阅读全文 网友收藏 文章浏览阅读4k次,点赞8次,收藏6次。出现如下错误:error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall QSqlDatabase::~QSqlDatabase(void)" (__imp_??1QSqlDatabase@@QAE@XZ),该符号在函数 _main 中被引用解决办法:VS"Qt&......
2023-11-13 15:59 阅读
阅读全文 网友收藏 文章浏览阅读776次。使用windeployqt.exe加载Qt项目运行所需的动态链接库.dll提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档提示:以下是本篇文章正文内容,下面案例可供参考一、新建文件夹以release模式......
2023-11-12 00:48 阅读
阅读全文 网友收藏 文章浏览阅读275次。一 、下载上官网(https://opencv.org/releases/)下载windows版本的opencv安装包,如4.1.2二、安装Opencv-4.1.2双击安装,安装完结构如下source就是源码目录,build里面有编译好的文件,如果是vc开发,那就可以直接用了,即......
2023-11-11 23:46 阅读
阅读全文 网友收藏 文章浏览阅读217次。一、多线程与界面组件的通信1、子线程更改界面组件状态的本质(1)、子线程发射信号通知主线程界面更新请求(2)、主线程根据具体信号以及信号参数对界面组件进行修改2、另一种子线程通知主线程的......
2023-11-12 00:46 阅读
阅读全文 网友收藏 文章浏览阅读3.8k次,点赞6次,收藏15次。Qt中文编译错误_c:\users\11854\desktop\qtproject\01\mypushbutton.cpp:7: error: c2001: 常量中...
2023-11-12 06:14 阅读
阅读全文