网友收藏 文章浏览阅读603次。Qt遇到错误:error:“collect2: ld returned 1 exit status”看到网上说是进程已启动未杀死就启动了新的进程,可能有这种情况,但本人却不是这个问题。这个问题应该是编译的问题,那么直接进入到build的目录里面,......
2024-01-12 20:13 阅读
阅读全文 网友收藏 在我们开发过程中,通常会有这样的需求,让一个QLabel一个字符串,显示特定的样式,比如红色字体。这样我们可以通过设置样式表来实现。 不过样式表的作用于这个QLabel。如果想要QLabel显示两种甚至多重不同的颜色(样......
2023-10-13 17:02 阅读
阅读全文 网友收藏 如何将qt从debug模式完全调整为release,从而生成exe文件运行第一次用qt写完一个项目,想生成exe文件,按照网上生成的一套流程,却一直没能成功,上网查了很久才发现问题出在第一步把模式从debug调到release的步骤,而且之前也......
2023-10-10 02:10 阅读
阅读全文 网友收藏 文章浏览阅读4.4k次。一、Debug版和Release版的区别 Debug:调试版本,包含调试信息,所以容量比Release大很多,并且不进行任何优化(优化会使调试复杂化,因为源代码和生成的指令间关系会更复杂),便于程序员调试。Debug模式......
2023-11-12 00:49 阅读
阅读全文 网友收藏 在实际使用中,可能会存在多个人协同开发或者C++与QML混合开发的使用场景,这时候可能会使用到不同的软件,多数情况下是Qt Creator和Qt Design Studio两款软件协同一起使用。(毕竟很多时候做出一个漂亮的软件外观比实现软件的......
2023-10-14 02:12 阅读
阅读全文 网友收藏 文章浏览阅读6.1k次,点赞6次,收藏23次。下文中提及的inuxdeployqt patchelf appimagetool工具及示例下载地址:链接: https://pan.baidu.com/s/1BGm_btMIe75uW9hOC09Xlg提取码: 7ayh需要创建目录及文件xxx.AppDirxxx.AppDir/AppRun-----------------------------------..._......
2023-11-11 23:35 阅读
阅读全文 网友收藏 文章浏览阅读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 阅读
阅读全文