随笔分类 -  Qt

摘要:1.什么是库 库是写好的现有的,成熟的,可以复用的代码。现实中每个程序都要依赖很多基础的底层库,不可能每个人的代码都从零开始,因此库的存在意义非同寻常。 本质上来说库是一种可执行代码的二进制形式,可以被操作系统载入内存执行。库有两种:静态库(.a、.lib)和动态库(.so、.dll)。 2.静态库 阅读全文
posted @ 2022-07-11 15:03 AlexSun_2021 阅读(1145) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2022-04-02 19:02 AlexSun_2021 阅读(52) 评论(0) 推荐(0) 编辑
摘要:1.DESTDIR 用于致命编译的目标文件的输出路径。 win32{ DESTDIR = ../../Lib/WIN32 }unit{ DESTDIR = ../../Lib/unix} 2.TARGET 目标名称。不包括后缀名。后缀名会根据TEMPLATE,平台自动增加。 如果需要我调试版本的库文 阅读全文
posted @ 2022-04-01 16:19 AlexSun_2021 阅读(305) 评论(0) 推荐(0) 编辑
摘要:问题1: TortoiseSVN项目监视器报错:条目不可用 解决办法: 1.QtCreator-工具-选项-版本控制-Subversion,Subversion command中填入svn程序,svn.exe或者TortoiseProc.exe 2.TortoiseSVN项目监视器中添加项目,名称和 阅读全文
posted @ 2022-03-24 16:19 AlexSun_2021 阅读(1587) 评论(0) 推荐(0) 编辑
摘要:选择QT5的兼容模块 然后再重新打开QT6,在你的项目代码上添加一句代码就可以了 从Qt 5移植到Qt 6的过程一直很容易。在Qt 6的整个开发过程中,一直有意识地努力保持与Qt 5的尽可能多的源兼容性。尽管如此,移植仍需要一些努力。这篇简短的文章总结了移植到Qt 6时所需的一些步骤。 在Qt 5中 阅读全文
posted @ 2022-03-23 11:02 AlexSun_2021 阅读(6986) 评论(0) 推荐(0) 编辑
摘要:第一步,安装llvm sudo apt-get install llvm 第二步,安装clang sudo apt-get install clang 阅读全文
posted @ 2022-03-19 17:04 AlexSun_2021 阅读(1377) 评论(0) 推荐(0) 编辑
摘要:安装g++: sudo apt-get install g++ 安装minGW-64: sudo apt-get update sudo apt-get install mingw-w64 i686-w64-mingw32-g++ //编译器将在64位系统上构建32位应用程序 x86_64-w64- 阅读全文
posted @ 2022-03-18 18:38 AlexSun_2021 阅读(499) 评论(0) 推荐(0) 编辑
摘要:1.下载在线安装包 网址:https://www.qt.io/download,选择开源下载。 下载得到的文件如:qt-unified-linux-x64-4.3.0.1-online.run 2.添加权限,执行 chmod +x qt-unified-linux-x64-4.1.0-online. 阅读全文
posted @ 2022-03-18 12:09 AlexSun_2021 阅读(2045) 评论(0) 推荐(0) 编辑
摘要:安装新立得 sudo apt install synaptic 2 新立得中搜索rabbit 标记 rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus 然后安装 3 执行命令 nautilus -q 4 然后在文件夹或桌面上 阅读全文
posted @ 2022-03-10 12:41 AlexSun_2021 阅读(209) 评论(0) 推荐(0) 编辑
摘要:在/etc/rc.local中添加命令行。 #!/bin/bash /usr/bin/svnserve -d -r /home/alex/work_svn 给rc.local文件添加x权限 sudo chmod +x /etc/rc.local 最后reboot即可 阅读全文
posted @ 2022-03-10 11:26 AlexSun_2021 阅读(92) 评论(0) 推荐(0) 编辑
摘要:隐式共享又称回写复制(copy on write)。当两个对象共享一份数据(通过浅拷贝实现数据块的共享)时,如果数据不改变,则不进行数据的复制。当某个对象需要改变数据时,则执行深拷贝。 隐式共享通过引用计数来实现。 阅读全文
posted @ 2022-03-03 15:35 AlexSun_2021 阅读(91) 评论(0) 推荐(0) 编辑
摘要:dynamic_cast: 通常在基类和派生类之间转换时使用,run-time cast。const_cast: 主要针对const和volatile的转换。static_cast: 一般的转换,no run-time check.通常,如果你不知道该用哪个,就用这个。reinterpret_cas 阅读全文
posted @ 2022-03-03 12:10 AlexSun_2021 阅读(376) 评论(0) 推荐(0) 编辑
摘要:Qt刚安装好,编译报错:/usr/bin/ld: cannot find -lGL 如下图: 解决办法: sudo apt-get install libgl1-mesa-dev 阅读全文
posted @ 2021-11-30 16:00 AlexSun_2021 阅读(321) 评论(0) 推荐(0) 编辑
摘要:终端输入命令: 1 cat /etc/issue 如下图: 阅读全文
posted @ 2021-11-30 15:34 AlexSun_2021 阅读(455) 评论(0) 推荐(0) 编辑
摘要:系统环境:Ubuntu 20.04.3 LTS,Qt 5.12.8 问题描述:安装完后打开一个测试项目,编译报错:qt 无法启动进程"make" -j2 解决办法: sudo apt install make 阅读全文
posted @ 2021-11-30 15:23 AlexSun_2021 阅读(1126) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示